hi
can anyone help me
i have a page in asp.net. i want to add a link on the page and when user click on that link it takes him to that page. for example i want to add a link like www.pics.edu.pk.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Jul 13, 2012, 4:37 AM
Response.Redirect sends a response to the client and directs the client (the browser) to load the new page (it causes a roundtrip). Server.Transfer transfers execution directly to another page.If you don't need to execute code on the client, Transfer is more efficient.
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("www.pics.edu.pk");
Server.Transfer("WebForm2.aspx");
}
Thanks
Santhosh Kumar JayaramanPosted Jul 13, 2012, 2:51 AM
Response.Redirect("www.pics.edu.pk");