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)
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 ...
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
guessing.
g.
B-) Please help me by completing my school survey about computer programmers on my website. Thank you!!! Gerry Lowry +1 705-429-7550 wasaga beach, ontario, canada
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.
Of course, you may have an ASP.Net application in which case I suspect the code is actually javascript. This is a c# 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.
Santosh Kuma...
Member
8 Points
14 Posts
opening web page in the web browser when clicking in the hyperlink present in web page
Mar 01, 2012 05:14 AM|LINK
hello,
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)
thanks
santosh
kedarrkulkar...
All-Star
34473 Points
5545 Posts
Re: opening web page in the web browser when clicking in the hyperlink present in web page
Mar 01, 2012 05:23 AM|LINK
does this work?
<a href="newPage.aspx" > click here </a>
hope this helps...
KK
Please mark as Answer if post helps in resolving your issue
My Site
Santosh Kuma...
Member
8 Points
14 Posts
Re: opening web page in the web browser when clicking in the hyperlink present in web page
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 ...
gerrylowry
All-Star
20513 Points
5712 Posts
Re: opening web page in the web browser when clicking in the hyperlink present in web page
Mar 01, 2012 11:42 PM|LINK
@ Santosh Kuma...
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 guessing.
g.
Paul Linton
Star
13421 Points
2535 Posts
Re: opening web page in the web browser when clicking in the hyperlink present in web page
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.
Of course, you may have an ASP.Net application in which case I suspect the code is actually javascript. This is a c# 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.