By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,646 Members | 2,105 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,646 IT Pros & Developers. It's quick & easy.

Webform Textbox

P: 6
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.
Nov 26 '07 #1
Share this Question
Share on Google+
6 Replies


Dököll
Expert 100+
P: 2,364
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
Nov 26 '07 #2

P: 6
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.
Nov 27 '07 #3

P: 6
Ok.
I managed to do it like this...

Expand|Select|Wrap|Line Numbers
  1. WebBrowser1.Navigate2 "http://www.website.com"
  2. Do Until WebBrowser1.ReadyState = READYSTATE_COMPLETE
  3. DoEvents
  4. Loop
  5. WebBrowser1.Document.All("field_name").Value = Text1.Text
  6. WebBrowser1.Document.All("field_name").Value = Text2.Text
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.
Nov 28 '07 #4

Dököll
Expert 100+
P: 2,364
Ok.
I managed to do it like this...

Expand|Select|Wrap|Line Numbers
  1. WebBrowser1.Navigate2 "http://www.website.com"
  2. Do Until WebBrowser1.ReadyState = READYSTATE_COMPLETE
  3. DoEvents
  4. Loop
  5. WebBrowser1.Document.All("field_name").Value = Text1.Text
  6. WebBrowser1.Document.All("field_name").Value = Text2.Text
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.microsoft.com/msdn/showpost.aspx?postid=843101&siteid=1&sb=0&d=1&at=7 &ft=11&tf=0&pageid=1
Nov 30 '07 #5

Dököll
Expert 100+
P: 2,364
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.microsoft.com/msdn/showpost.aspx?postid=843101&siteid=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_ROOT\TypeLib\{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}]

[HKEY_CLASSES_ROOT\TypeLib\{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}\1.1]
@="Microsoft Internet Controls"

[HKEY_CLASSES_ROOT\TypeLib\{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}\1.1\0]

[HKEY_CLASSES_ROOT\TypeLib\{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}\1.1\0\win32]
@="C:\\WINDOWS\\system32\\ieframe.dll"
Save as IEFrameFix.reg

Worked wonders for me.

Have fun!
Nov 30 '07 #6

P: 6
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.
Nov 30 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.