open a web site

Posted by Pokuri31 under ASP.NET on 11/9/2008 | Views : 1351 | Status : [Member] | Replies : 2
hi friends,

when i press a button ,how to open a web page?




Responses

Posted by: Deysomnath on: 11/9/2008 [Member] Starter

Up
0
Down
suppose you want to open www.google.com on the click of a button.then copy paste the below code on the button event.

Response.Redirect(www.google.com);

if you want to open another web page of ur application then

Response.Redirect(web page name);



Pokuri31, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Majith on: 11/9/2008 [Member] Starter

Up
0
Down
hi,
There are lot of ways to achieve your question.

location.href = "www.dotnetfunda.com";

on the client side using java script



Pokuri31, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response