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