Button redirect error
Posted
by
Bader
on Stack Overflow
See other posts from Stack Overflow
or by Bader
Published on 2010-12-22T23:42:24Z
Indexed on
2010/12/22
23:54 UTC
Read the original article
Hit count: 184
c#
|visual-studio-2010
I am trying to a redirect the user when they click on a specific button
protected void Button1_Click(object sender, EventArgs e)
{
Server.Transfer("ControlPanel/Default.aspx");
}
The problem is when I click Button1 it redirects me to another page
localhost:57988/WebSite5/Default.aspx
and the weirdest thing is it open another page with this link above, not the default page I have, but another but with the default.aspx page url that you see!
Any suggestions?
© Stack Overflow or respective owner