I have an application the uses usercontrols (sidebar.ascx, sidebar1.ascx,
ect.))to display a side menu with content that will vary depending on what
folder the user is currently accessing.
like this:
root/folder1/somepage.aspx or root/folder2/somepage.aspx
I think there should be an easy(?) way to get the path of the folder
containg the page the user is trying to access to load the proper .ascx page
into the user control. The ascx pages are different depending on the folder
accessed. Is this possible?
The only other way I can think of to do this is to just put the proper .ascx
page into each folder and access them that way.
Something like this:
If Path = root/somefolder1/ Then
usercontrol=sidebar1.ascx
ElseIf Path= root/somefolder2/ Then
usercontrol=sidebar2.ascx
End If
TIA,
Mark