-1

hi, im new here. i ve a project to automate a process. for which i ve to navigate to a asp.net web page automatically and then to click a link on that navigated page. im in need of asp.net code to do this. i ve tried like this

<html>
<head>
<script language=vbscript>
function nav()
{
window.navigate('http://www.w3schools.com/');
}
function lnkchk()
{
For i As Integer = 0 To Me.WebBrowser1.Document.Links.Count - 1
If Me.WebBrowser1.Document.Links(i).InnerHtml.StartsWith("Learn HTML") Then
Me.WebBrowser1.Document.Links(i).InvokeMember("Click")
End If
Next
}
</script>
</head>
<BODY>
<input type="button" onclick="nav(); lnkchk();" value="Click me"> 
</body>
</html>

but it does not works, i dont know were im wrong since im new to both javascript and asp.net, can anybody pls help me regarding this

Edited by __avd: Added [code] tags. Encase your code in: [code] and [/code] tags.

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by Geekitygeek
0

Please dont resurrect old threads, start a new thread instead.
Aslo, you have posted an ASP.NET and VB issue in the C# board. You're more likely to get the help you need if you post in the relevant boards.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.