473,406 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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.
Nov 26 '07 #1
6 1613
Dököll
2,364 Expert 2GB
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
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
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
2,364 Expert 2GB
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
2,364 Expert 2GB
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
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

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

Similar topics

3
by: Bryan Z | last post by:
I was wondering how do you print just part of a webform in asp.net -- like just printing the contents of a textbox or label. I know that it will involve javascript, but I cannot get the javascript...
1
by: Chris Scragg | last post by:
Hi all: Through a Session variable, I am populating among other things the password field in a user's profile page (the Webform); this.TextBoxConfirmPassword.Text = Convert.ToString(Session);...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
0
by: Flemming Jensen | last post by:
The idea behind this code is to standardize all my webpages in an application to look the same by inheriting the pages from a userdefined class. But it gives me problems regarding sessionstate... ...
9
by: Peter Afonin | last post by:
Hello: I need to clear all textboxes on the webform after the data has been submitted. How can I do this in one step? I found a C# code: // get a reference to your form control Control frm...
2
by: Paul Hale | last post by:
Hi, I have two web forms (lets call them webform1 and webform2) that run as part of the same web application. Webform1 contains a text box. I would like to pop up a new browser window...
2
by: mg | last post by:
What code (javascript) will cause a WebForm to be submited (runatserver) whenever a new character is typed into a TextBox from the keyboard?
4
by: Sanjay Pais | last post by:
I need to write an application in C# that can accept a WebForm. I am assuming the WebForm would need to be accessed in design mode. I need to recursively iterate through the fields in the form,...
0
by: Ivan Sammut | last post by:
Is it possible to bind a textbox on a webform to some field in my database cause I can't get it 2 work. I binded a list of country to a dropdownlist, now all I need is that everytime my users...
5
by: VMI | last post by:
How can I pass variable or Property values from my popup webForm to the webform that opened this popup? For information that's in a control (i.e. Textbox), I'm using javascript and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.