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. what is "~" function?

what is "~" function?

Scheduled Pinned Locked Moved ASP.NET
questionhelp
5 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.
  • S Offline
    S Offline
    skywen
    wrote on last edited by
    #1

    If PortalSecurity.IsInRoles("Admins") = False Then Response.Redirect("~/Admin/EditAccessDenied.aspx") End If what is the difference between the "~/Admin/EditAccessDenied.aspx" and "../Admin/EditAccessDenied.aspx" ? thanks for help.

    O D 2 Replies Last reply
    0
    • S skywen

      If PortalSecurity.IsInRoles("Admins") = False Then Response.Redirect("~/Admin/EditAccessDenied.aspx") End If what is the difference between the "~/Admin/EditAccessDenied.aspx" and "../Admin/EditAccessDenied.aspx" ? thanks for help.

      O Offline
      O Offline
      orion807
      wrote on last edited by
      #2

      skywen wrote: If PortalSecurity.IsInRoles("Admins") = False Then Response.Redirect("~/Admin/EditAccessDenied.aspx") End If It represents the root of the web application. Doug If memory serve's me right... - Chairman Kaga

      S 1 Reply Last reply
      0
      • S skywen

        If PortalSecurity.IsInRoles("Admins") = False Then Response.Redirect("~/Admin/EditAccessDenied.aspx") End If what is the difference between the "~/Admin/EditAccessDenied.aspx" and "../Admin/EditAccessDenied.aspx" ? thanks for help.

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        "~" represents the absolute path to the root of your web application, where ".." represents the directory above the current directory. They are, by no means, interchangable. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        S 1 Reply Last reply
        0
        • O orion807

          skywen wrote: If PortalSecurity.IsInRoles("Admins") = False Then Response.Redirect("~/Admin/EditAccessDenied.aspx") End If It represents the root of the web application. Doug If memory serve's me right... - Chairman Kaga

          S Offline
          S Offline
          skywen
          wrote on last edited by
          #4

          oh,I see! thanks again!

          1 Reply Last reply
          0
          • D Dave Kreskowiak

            "~" represents the absolute path to the root of your web application, where ".." represents the directory above the current directory. They are, by no means, interchangable. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            S Offline
            S Offline
            skywen
            wrote on last edited by
            #5

            oh,I see! thanks again!

            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