Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello,

 

I am using VB.NET and am working within a Windows Form.

 

Within my form i have a web consol where i navigate to a website that contains a web form. I would like to enter data into the form. Currently i use this method which works well:

 

web1.Document.forms("formname").fieldname.value = "testdata"

 

This works well, but my problem is that i am currently working with a web form that has no name, how would i enter data into a web form with no name?

 

I have tried many variations with no success, such as the following:

 

web1.Document.forms("form").fieldname.value = "testdata"

web1.Document.forms("").fieldname.value = "testdata"

web1.Document.forms().fieldname.value = "testdata"

web1.Document.forms.fieldname.value = "testdata"

web1.Document.fieldname.value = "testdata"

 

Could someone suggest a way to enter data into a web form that has no name?

 

Thanks.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...