Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 03, 2012 06:18 AM by Paul Linton
Mar 01, 2012 05:14 AM|LINK
i am trying to click a hyperlink in a web page and trying to open it in a web browser.... and not able to do that. i tried with different ways but it is opening in another browser which i dont want.. so if any one can guide me to get the web page in a web
browser when click in hyperlink will be very help full to me.(in c sharp code)
Mar 01, 2012 05:23 AM|LINK
does this work?
<a href="newPage.aspx" > click here </a>
hope this helps...
Mar 01, 2012 05:35 AM|LINK
i did it in same way as that web page has many <a>..</a> i got them by using webbrowser.document.getelementbytagname().... then i ran a foreach loop. to get a particular link having<a>utility</a> and then called .invokemember("click"); ...but the problem
is that it is opening it in another web page not the same web browser.. as my application need to open the web page in the same web browser.. so guide me ...
Mar 01, 2012 11:42 PM|LINK
it would help your peers here at forums.asp.net to help you if you would show the relevant code snippets related to your issue; otherwise, we're mostly
Mar 03, 2012 06:18 AM|LINK
This is an ASP.Net forum. I suspect that you have a windows application which is using a web browser control. You would be better off asking in a win forms (or WPF or whatever technology you are using) forum.
If you really think that you have an ASP.Net application using c# then you will need to give some explanation about how you are getting that code to run on the client (as well as actually show the code and how it is invoked).
With the very little information you have given it is only ever going to be wild stabs in the dark.