Webform Textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • James07
    New Member
    • Nov 2007
    • 6

    Webform Textbox

    Hey

    I'm new to Vb and I'm wanting to know if it's possible to input text into a textbox and after clicking a button the data is then put into a webform of an opened webpage.

    Thanks.
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Originally posted by James07
    Hey

    I'm new to Vb and I'm wanting to know if it's possible to input text into a textbox and after clicking a button the data is then put into a webform of an opened webpage.

    Thanks.
    Hello James07!

    Which language are you hoping to do this in?

    Also the form you will enter data form, is it a web form. Are you trying to submit data from one form and see this data in another form?

    In a bit!

    Dököll

    Comment

    • James07
      New Member
      • Nov 2007
      • 6

      #3
      I'm wanted to use Visual Basic, I know I have to use the Internet Transfer Control, and I want to be able to type data in a textbox then click the a button, the data in the textbox will then be posted on the web form in the correct field.

      For example:

      [HTML]<input type="text" name="to" value="" />
      <input type="text" name="subject" value="" />[/HTML]

      Thanks.

      Comment

      • James07
        New Member
        • Nov 2007
        • 6

        #4
        Ok.
        I managed to do it like this...

        [CODE=VB]WebBrowser1.Nav igate2 "http://www.website.com "
        Do Until WebBrowser1.Rea dyState = READYSTATE_COMP LETE
        DoEvents
        Loop
        WebBrowser1.Doc ument.All("fiel d_name").Value = Text1.Text
        WebBrowser1.Doc ument.All("fiel d_name").Value = Text2.Text[/CODE]

        But I'm having some problems with the the Internet Controls.
        It gives me a Run-time error '-1 (ffffffff) I tried changing the ieframe.dll to shdocvw.dll, but it's still the same. I'll keep looking for a solution.
        Last edited by Dököll; Nov 30 '07, 06:31 AM. Reason: Code=VB tag

        Comment

        • Dököll
          Recognized Expert Top Contributor
          • Nov 2006
          • 2379

          #5
          Originally posted by James07
          Ok.
          I managed to do it like this...

          [CODE=VB]WebBrowser1.Nav igate2 "http://www.website.com "
          Do Until WebBrowser1.Rea dyState = READYSTATE_COMP LETE
          DoEvents
          Loop
          WebBrowser1.Doc ument.All("fiel d_name").Value = Text1.Text
          WebBrowser1.Doc ument.All("fiel d_name").Value = Text2.Text[/CODE]

          But I'm having some problems with the the Internet Controls.
          It gives me a Run-time error '-1 (ffffffff) I tried changing the ieframe.dll to shdocvw.dll, but it's still the same. I'll keep looking for a solution.
          Haaa! I see...

          I think I got just the thing...

          Please stay tuned while I fetch my desktop, I am currently on my notebook.

          I believe you need to repair your IE frame.

          In a bit!

          Well, this is not I was looking for, but please start here meanwhile:
          http://forums.microsof t.com/msdn/showpost.aspx?p ostid=843101&si teid=1&sb=0&d=1 &at=7&ft=11&tf= 0&pageid=1
          Last edited by Dököll; Nov 30 '07, 06:32 AM. Reason: Added info / CODE=VB tag...

          Comment

          • Dököll
            Recognized Expert Top Contributor
            • Nov 2006
            • 2379

            #6
            Originally posted by Dököll
            Haaa! I see...

            I think I got just the thing...

            Please stay tuned while I fetch my desktop, I am currently on my notebook.

            I believe you need to repair your IE frame.

            In a bit!

            Well, this is not I was looking for, but please start here meanwhile:
            http://forums.microsof t.com/msdn/showpost.aspx?p ostid=843101&si teid=1&sb=0&d=1 &at=7&ft=11&tf= 0&pageid=1
            Nevermind, here it is, also included through the link:

            Add this to Notepad


            Windows Registry Editor Version 5.00

            [HKEY_CLASSES_RO OT\TypeLib\{EAB 22AC0-30C1-11CF-A7EB-0000C05BAE0B}]

            [HKEY_CLASSES_RO OT\TypeLib\{EAB 22AC0-30C1-11CF-A7EB-0000C05BAE0B}\1 .1]
            @="Microsoft Internet Controls"

            [HKEY_CLASSES_RO OT\TypeLib\{EAB 22AC0-30C1-11CF-A7EB-0000C05BAE0B}\1 .1\0]

            [HKEY_CLASSES_RO OT\TypeLib\{EAB 22AC0-30C1-11CF-A7EB-0000C05BAE0B}\1 .1\0\win32]
            @="C:\\WINDOWS\ \system32\\iefr ame.dll"
            Save as IEFrameFix.reg

            Worked wonders for me.

            Have fun!

            Comment

            • James07
              New Member
              • Nov 2007
              • 6

              #7
              About the reg fix thing.. I tried something like this and I tried this one but it says..

              The specified file is not a registry script. You can only import binary files from within the registry editor.

              I ended up having to rename my shdocvw.dll to ieframe.dll and that worked, but my IE7 was messed up so I reinstalled it after I had finished what I needed to do.

              Comment

              Working...