Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Scheduled Pinned Locked Moved C#
questioncsharphelp
9 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    peshkunta
    wrote on last edited by
    #1

    Please help me!!! 1.How do I pass a value from my C# application to a textfield on a webpage on the net?? 2. I dont' know exactly how this works but can you login to a website through one line of code - through the addressbar of a web browser???? any help is much apprecated!!!

    C 1 Reply Last reply
    0
    • P peshkunta

      Please help me!!! 1.How do I pass a value from my C# application to a textfield on a webpage on the net?? 2. I dont' know exactly how this works but can you login to a website through one line of code - through the addressbar of a web browser???? any help is much apprecated!!!

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      peshkunta wrote:

      How do I pass a value from my C# application to a textfield on a webpage on the net??

      Do you mean any arbitrary web page? I would doubt that is easily achievable.

      peshkunta wrote:

      I dont' know exactly how this works but can you login to a website through one line of code - through the addressbar of a web browser????

      Again, is this an arbitrary website? I would doubt it unless the website is extremely badly designed.


      My: Blog | Photos "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius

      P 1 Reply Last reply
      0
      • C Colin Angus Mackay

        peshkunta wrote:

        How do I pass a value from my C# application to a textfield on a webpage on the net??

        Do you mean any arbitrary web page? I would doubt that is easily achievable.

        peshkunta wrote:

        I dont' know exactly how this works but can you login to a website through one line of code - through the addressbar of a web browser????

        Again, is this an arbitrary website? I would doubt it unless the website is extremely badly designed.


        My: Blog | Photos "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius

        P Offline
        P Offline
        peshkunta
        wrote on last edited by
        #3

        1. I would like to be able to 1) click a button in my C# application. 2) a browser window opens with a webpage that has a textfield in it - let's say yahoo.finance stock symbol. I want this value of the stock symbol to be passed from my C# text field to the textfield of the yahoo (example) site. 2. What I meant was let's say I want to login to my website and I have my password and username. I want to be able to click a button and login without putting in the password and username every time - and all this specifically from my C# application. Let's say you have WebRequest class object and you have to pass it a URL. There must be a way to pass a URL with with the password/username in it to connect. Kind of like this except this format doesn't work for some reason: "http://www.abc.com/pass\_management/user\_auth.php?name=USERNAME&pass=PASSWORD" I should be able to pass the above URL(example) to the address bar of a browser and login to my email page bypassing the login page and already opening my emails. Not sure how this works. -- modified at 8:56 Monday 26th December, 2005

        C 1 Reply Last reply
        0
        • P peshkunta

          1. I would like to be able to 1) click a button in my C# application. 2) a browser window opens with a webpage that has a textfield in it - let's say yahoo.finance stock symbol. I want this value of the stock symbol to be passed from my C# text field to the textfield of the yahoo (example) site. 2. What I meant was let's say I want to login to my website and I have my password and username. I want to be able to click a button and login without putting in the password and username every time - and all this specifically from my C# application. Let's say you have WebRequest class object and you have to pass it a URL. There must be a way to pass a URL with with the password/username in it to connect. Kind of like this except this format doesn't work for some reason: "http://www.abc.com/pass\_management/user\_auth.php?name=USERNAME&pass=PASSWORD" I should be able to pass the above URL(example) to the address bar of a browser and login to my email page bypassing the login page and already opening my emails. Not sure how this works. -- modified at 8:56 Monday 26th December, 2005

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          Neither of these are eaily achievable. 1. Requires taking over the browser in order to inject values into a web page. 2. Requires that you know the design of the web-site in order to pass through its security system (this depends on the way the website is set up and I seriously doubt any website that is written by anyone with even a tiniest bit of competance would accept a user name and password in the URL)


          My: Blog | Photos "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius

          P 1 Reply Last reply
          0
          • C Colin Angus Mackay

            Neither of these are eaily achievable. 1. Requires taking over the browser in order to inject values into a web page. 2. Requires that you know the design of the web-site in order to pass through its security system (this depends on the way the website is set up and I seriously doubt any website that is written by anyone with even a tiniest bit of competance would accept a user name and password in the URL)


            My: Blog | Photos "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius

            P Offline
            P Offline
            peshkunta
            wrote on last edited by
            #5

            Hmn...Strange. I have a program that does exactly that but it's not my own and doesn't have the other options I need in it. -- modified at 9:06 Monday 26th December, 2005

            C 1 Reply Last reply
            0
            • P peshkunta

              Hmn...Strange. I have a program that does exactly that but it's not my own and doesn't have the other options I need in it. -- modified at 9:06 Monday 26th December, 2005

              C Offline
              C Offline
              Colin Angus Mackay
              wrote on last edited by
              #6

              I didn't say it was impossible. I said that it wasn't "easily achievable". The reason for that is that you are maipulating the user interface. The UI layer is often a fickle thing that humans can easily compensate for but automated processes cannot. I have a password manager that works for some websites but gets thorouly confused by others. The reason is that some websites change too frequenly, or provide no stable context mechanism. Passwords cannot be passed as part of the URL unless the website allows it, and I would shun any such website like the plague because it is such an insecure way of passing such information. Now, if the website has a public API for doing such things then use that - it was designed for automated processes to interact with it.


              My: Blog | Photos "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius

              P 1 Reply Last reply
              0
              • C Colin Angus Mackay

                I didn't say it was impossible. I said that it wasn't "easily achievable". The reason for that is that you are maipulating the user interface. The UI layer is often a fickle thing that humans can easily compensate for but automated processes cannot. I have a password manager that works for some websites but gets thorouly confused by others. The reason is that some websites change too frequenly, or provide no stable context mechanism. Passwords cannot be passed as part of the URL unless the website allows it, and I would shun any such website like the plague because it is such an insecure way of passing such information. Now, if the website has a public API for doing such things then use that - it was designed for automated processes to interact with it.


                My: Blog | Photos "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius

                P Offline
                P Offline
                peshkunta
                wrote on last edited by
                #7

                1. The program I have has nothing to do with the website it logs into. Yet all I have to do is give that program my username and password and url and it gets into my website I don't have to do it every time as usual when I go to my website and put in the login info every time. It's obvious that program logs into my website somehow and even gets info from it. The problem is it's not the info I need. I know it's doable and I know it's quite simple. I just know it. But I can't seem to find the answer to it. 2.(question) And what about the programs which automatically fill in your address, etc. when you go to a website that requires your info. That's what I'm talking about too. -- modified at 9:44 Monday 26th December, 2005

                R 1 Reply Last reply
                0
                • P peshkunta

                  1. The program I have has nothing to do with the website it logs into. Yet all I have to do is give that program my username and password and url and it gets into my website I don't have to do it every time as usual when I go to my website and put in the login info every time. It's obvious that program logs into my website somehow and even gets info from it. The problem is it's not the info I need. I know it's doable and I know it's quite simple. I just know it. But I can't seem to find the answer to it. 2.(question) And what about the programs which automatically fill in your address, etc. when you go to a website that requires your info. That's what I'm talking about too. -- modified at 9:44 Monday 26th December, 2005

                  R Offline
                  R Offline
                  Rob Graham
                  wrote on last edited by
                  #8

                  When you find your simple, easily doable answer, tell the rest of us. Like Colin, I think this is neither easy nor simple to accomplish for an arbitrary web site. Are you sure your program is not logging into a web service (not exactly the same thing as an arbitrary website) that is designed to provide some specific information? This might well expect a suername/password login (which it passes via an encryption rtocol hopefully). If so then that web service was likely designed to return only the specific information you are getting.... Absolute faith corrupts as absolutely as absolute power Eric Hoffer All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke

                  P 1 Reply Last reply
                  0
                  • R Rob Graham

                    When you find your simple, easily doable answer, tell the rest of us. Like Colin, I think this is neither easy nor simple to accomplish for an arbitrary web site. Are you sure your program is not logging into a web service (not exactly the same thing as an arbitrary website) that is designed to provide some specific information? This might well expect a suername/password login (which it passes via an encryption rtocol hopefully). If so then that web service was likely designed to return only the specific information you are getting.... Absolute faith corrupts as absolutely as absolute power Eric Hoffer All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke

                    P Offline
                    P Offline
                    peshkunta
                    wrote on last edited by
                    #9

                    I'm not sure if you understand exactly what I mean: When you send a WebRequest to a server/website it checks the request (if it is correct - has the correct parameters - username/password) it sends you a response depeding on that. When that website requires password/username login it doesn't take you to that page but instead to a login page. The information your browser sends is the same as the information the WebRequest object does. When you have entered the login info in the web browser and press a button it still sends a request to the server with the right info and the server lets you in - it (the WebRequest object) sends a request and gets a response from the server, it doesn't send the button object or anything like that so the button pressing is not essential to sending that request. Amazing so many programmers and no one knows an aswer to my question.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups