button - getting back to folder in asp.net -


protected void button1_click(object sender, eventargs e) { response.redirect("page2.aspx"); } code go on .aspx if want go in folder in solution explorer, tried location dont work knows post it.

this location > website\admin -news.aspx -project.aspx , created in news.aspx button go admin, , when hit button location next > website\admin\admin why duplicate admin ?

if have admin folder in application redirect

response.redirect("admin/page.aspx"); or response.redirect("~/admin/page.aspx");

if don't have admin folder in application redirect it

response.redirect("page.aspx");

try ...


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -