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. how to search&open the root folder file???

how to search&open the root folder file???

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptasp-nettutorialquestion
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.
  • K Offline
    K Offline
    Karan_TN
    wrote on last edited by
    #1

    hi, currently i m working in asp.net 2.0 (web application) i have a doubt in javascript i m using...

    window.open("login.aspx");

    for the above execution, it search the file in the same local directory. but wherever i m (in any folder, sub-folder), if i execute this line, i have to come to the ROOT directory and open the login.aspx page. how to proceed this? In asp.net there is a statement

    Response.Redirect("~/login.aspx");

    in javascript window.open() ????? Thanks in advance, Karan

    D 1 Reply Last reply
    0
    • K Karan_TN

      hi, currently i m working in asp.net 2.0 (web application) i have a doubt in javascript i m using...

      window.open("login.aspx");

      for the above execution, it search the file in the same local directory. but wherever i m (in any folder, sub-folder), if i execute this line, i have to come to the ROOT directory and open the login.aspx page. how to proceed this? In asp.net there is a statement

      Response.Redirect("~/login.aspx");

      in javascript window.open() ????? Thanks in advance, Karan

      D Offline
      D Offline
      Deepak the Cool
      wrote on last edited by
      #2

      You wrote it like window.open("../login.aspx") .. is present the one sub drectory,so if you have more than one subdirectory then use .. as much as subdirectory count.

      Deepak :) Smile a Lots,Its Costs Nothing

      K 1 Reply Last reply
      0
      • D Deepak the Cool

        You wrote it like window.open("../login.aspx") .. is present the one sub drectory,so if you have more than one subdirectory then use .. as much as subdirectory count.

        Deepak :) Smile a Lots,Its Costs Nothing

        K Offline
        K Offline
        Karan_TN
        wrote on last edited by
        #3

        actually i wrote one javascript file, which will process in all pages and finally redirect to LOGIN page of ROOT folder. more number of folders/sub folders are there.. ~/ is used to get the root folder path of an application in asp.net. In javascript???? Suggest me some good idea to proceed with.. Thanks in advance, Karan

        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