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. General Programming
  3. Visual Basic
  4. I want my URL to be static for eg "http://project1"

I want my URL to be static for eg "http://project1"

Scheduled Pinned Locked Moved Visual Basic
3 Posts 2 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.
  • V Offline
    V Offline
    VB Net Developer
    wrote on last edited by
    #1

    I wamt the URL of my project to be "http://project1" irrespectives of the pages u visit in the project...Howis it possible...

    S 1 Reply Last reply
    0
    • V VB Net Developer

      I wamt the URL of my project to be "http://project1" irrespectives of the pages u visit in the project...Howis it possible...

      S Offline
      S Offline
      Steven J Jowett
      wrote on last edited by
      #2

      In your Global.asax, I believe you need to add the following :- protected Sub Application_BeginRequest(ByVal sender as Object, ByVal e as System.EventArgs) Dim incoming As HttpContext = HttpContext.Current incoming.RewritePath("http://Project1") End Sub

      Steve Jowett ------------------------- Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'

      V 1 Reply Last reply
      0
      • S Steven J Jowett

        In your Global.asax, I believe you need to add the following :- protected Sub Application_BeginRequest(ByVal sender as Object, ByVal e as System.EventArgs) Dim incoming As HttpContext = HttpContext.Current incoming.RewritePath("http://Project1") End Sub

        Steve Jowett ------------------------- Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'

        V Offline
        V Offline
        VB Net Developer
        wrote on last edited by
        #3

        It shows an error that the virtual path "http://project1" doesnt exist

        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