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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. URL rewritting c#.net 2.0

URL rewritting c#.net 2.0

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
4 Posts 3 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.
  • D Offline
    D Offline
    Dotnetkanna
    wrote on last edited by
    #1

    Im trying to rewrite the Url using C# Asp.Net 2.0..if i run the application in default i will get the Address bar Url as below.. http://localhost:1549/Url/Default.aspx But i need as like below.this mean that who logged in that username is to be displayed..and it should be appear in the address bar like this.. http://localhost:1549/Url/Kanna any suggestion?? Regards Kanna

    T N 2 Replies Last reply
    0
    • D Dotnetkanna

      Im trying to rewrite the Url using C# Asp.Net 2.0..if i run the application in default i will get the Address bar Url as below.. http://localhost:1549/Url/Default.aspx But i need as like below.this mean that who logged in that username is to be displayed..and it should be appear in the address bar like this.. http://localhost:1549/Url/Kanna any suggestion?? Regards Kanna

      T Offline
      T Offline
      trish_
      wrote on last edited by
      #2

      you can search for HttpModules

      trish

      D 1 Reply Last reply
      0
      • T trish_

        you can search for HttpModules

        trish

        D Offline
        D Offline
        Dotnetkanna
        wrote on last edited by
        #3

        Thanx..If u dont mind can u post me a sample code.?

        1 Reply Last reply
        0
        • D Dotnetkanna

          Im trying to rewrite the Url using C# Asp.Net 2.0..if i run the application in default i will get the Address bar Url as below.. http://localhost:1549/Url/Default.aspx But i need as like below.this mean that who logged in that username is to be displayed..and it should be appear in the address bar like this.. http://localhost:1549/Url/Kanna any suggestion?? Regards Kanna

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

          Dotnetkanna wrote:

          http://localhost:1549/Url/Kanna

          If you are on IIS 5.1 or 6.0, this kind of extension-less rewriting is not possible. This is possible if you have a directory named Kanna available with an index file. But extension-less rewriting can be done in IIS7.0. To implement rewriting, take a look at URL Rewriter.NET which is an open source project.

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

          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