Click here to Skip to main content
15,906,558 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i response.redirect() one page to other page with hidden extension




protected void Page_Load(object sender, EventArgs e)
{


Response.Redirect("~/Index_Menu/IndexHome.aspx");
}

and i wont, show url as "~/Index_Menu/Home".


// Home=IndexHome.aspx
Posted
Updated 25-Dec-13 1:13am
v3
Comments
Tejas Vaishnav 25-Dec-13 6:56am    
what do you mean by "hidden extension"?

1 solution

HI,
do you mean you want to rewrite URL. you can do it by using urlrewrinting.net. it is a free tools for rewrite URl.

if you are using MVC with framework 4.0 then it have some inbuilt features to do URL rewrite.


http://weblogs.asp.net/scottgu/archive/2009/10/13/url-routing-with-asp-net-4-web-forms-vs-2010-and-net-4-0-series.aspx[^]


OR you can use URL rewrite module from IIS 7 or greater
http://www.iis.net/learn/extensions/url-rewrite-module[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900