Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Asp .net page extension

Asp .net page extension

Scheduled Pinned Locked Moved ASP.NET
csharp
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    amit_83
    wrote on last edited by
    #1

    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

    M N N I 4 Replies Last reply
    0
    • A amit_83

      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

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      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)

      1 Reply Last reply
      0
      • A amit_83

        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

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • A amit_83

          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

          N Offline
          N Offline
          neerubee
          wrote on last edited by
          #4

          using URL Rewriting in ASP.Net you can set whatever url you want means you can hide .aspx extensions etc.

          Thanks & Regards Niranjan

          1 Reply Last reply
          0
          • A amit_83

            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

            I Offline
            I Offline
            imsathy
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups