Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.Net Web Control
Message
From
28/11/2006 10:04:47
Keith Payne
Technical Marketing Solutions
Florida, United States
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01172849
Message ID:
01172936
Views:
12
>Hi All
>I have made one application which logs to a government website from my application.
>For that purpose i have created a web explorer on my form and i have specified that particular URL name.
>As soon as i run that form it opens that particular website
>
>Now In that website there is 2 textboxes (user name and password) and 2 buttons (submit and cancel)
>When I count no. of item by webcontrol1.controls.items.count() gives me 4
>Is there a way to access these controls directly from my application by using webcontrol.controls.items(0).text = "XYZ"
>something like this.......I am not able to get through with this
>
>
>Also I can find a particular string in the document by
>webcontrol1.document.outertext.contains("ABC") returns .T. , but how to select that particluar text automatically after finding it.
>
>Please Help....Its Very Urgent......
>
>
>Thanx In Advance

Riyaz,

Unfortunately, if your intention is to simulate a postback to the government website you will not get very far using an IE COM server. It is much easier to use the WebClient class to retrieve the contents of the government website and the HttpWebRequest class to post back with the viewstate and authentication cookie.

http://odetocode.com/Articles/162.aspx is an excellent article (C#) on this topic.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform