Hi
I have been developing a website. I need to hide the page extension of the pages while user is browsing my site.
for example:
Home.aspx should be displayed as Home only.
How can i do this.
Please help
Thanks
Hi
I have been developing a website. I need to hide the page extension of the pages while user is browsing my site.
for example:
Home.aspx should be displayed as Home only.
How can i do this.
Please help
Thanks
nccsbim071,
Handlers or module may help you.
You can use URL rewriting, but it is much better, in my opinion, to use folders with default.aspx page inside. Instead Home.aspx, use Home/Default.aspx.
Hi ManicCW
I already trid that. I created a folder named home and inside this folder i created Default.aspx and worte all the contents of Home.aspx in Default.aspx.
I tried to access the folder as follows:
Http://localhost:4381/ApplicationName/Home
but i get error not page.
You can do that using URL re-writing.
Read this article: http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx
Especially check Approach 3 in the above article.
Other references:
http://msdn.microsoft.com/en-us/library/ms972974.aspx
http://www.codeproject.com/KB/ISAPI/URLRewriting.aspx
http://www.simple-talk.com/dotnet/asp.net/a-complete-url-rewriting-solution-for-asp.net-2.0/
Hey use.. url mappings in webconfig file...
please refer the following
http://davidhayden.com/blog/dave/archive/2005/12/07/2613.aspx
generic handlers could be the solution or kameshwari also right...
it depends on your application what it does...if it is about loading the binary data then handler is the option else
kameshwari is your correct option...
hope it helps !
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.