Url redirectingg

sureshcd10

Regular
Joined
Dec 25, 2003
Messages
77
I have got 3 Folders

Folder1
W1.aspx
w2.aspx
Folder2
w3.aspx
w4.aspx
Folder3
w5.aspx
w6.aspx

On w1.aspx form I placed one button named BtnGo
Now on clicking this button I want to redirect to
w6.aspx webform (of Folder3).But the problem is I dont know
the exact location of this w6.aspx file.

That is when I click on the btnGo button which is placed on the w1.aspx web form,I want to invoke a function that will find out the location of w6.aspx webform and redirect automatically.
:o :confused:


Thank u all
 
what do you mean by 'But the problem is I dont know the exact location of this w6.aspx file.' Isn't it in folder3??

you can use this to redirect to it

Response.Redirect("../folder3/w6.aspx")
 
Hi,

You can use File System methods to find the location of the file by iterating through the directories by passing the file name. Depending upon their location, create the URL and use Redirect to go to that file.



HTH
 
Back
Top