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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.