Asp .net page extension
-
Hi, can we can open .aspx page without showing its extesion. i mean, suppose my aspx page name is info.aspx, but when i ren the application then it open the page /info , form but .aspx should not come,while opening page.
amit
You can use the URL rewritting thing in ASP.NET. If you like to get the example, you can search with this keyword "ASP.NET URL rewritting" in Google.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
Hi, can we can open .aspx page without showing its extesion. i mean, suppose my aspx page name is info.aspx, but when i ren the application then it open the page /info , form but .aspx should not come,while opening page.
amit
amit_83 wrote:
can we can open .aspx page without showing its extesion.
You can change the extension to anything that you like. Add the extension to application mapping list in IIS and map it to
aspnet_isapi.dll
. For removing the extension, you need to map all the requests to process via ASP.NET engine. I don't know how much efficient is this.All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
Hi, can we can open .aspx page without showing its extesion. i mean, suppose my aspx page name is info.aspx, but when i ren the application then it open the page /info , form but .aspx should not come,while opening page.
amit
-
Hi, can we can open .aspx page without showing its extesion. i mean, suppose my aspx page name is info.aspx, but when i ren the application then it open the page /info , form but .aspx should not come,while opening page.
amit
A simple way is to create subdirectories for each page and create default.aspx page in each directory. in your case create a folder named info and in that you work in default.aspx so when you redirect to page/info it will automatically take the default page in the directory.