I need some help with this.
I have two files
page.aspx: A page that a user calls
uc.ascx: A user control that page.aspx uses. The ascx file has HTML used
for a site background which would display one of two images. If page.aspx is
in the root directory, the displayed image has no text. If page.aspx is
anywhere but the root directory, the displayed image has "Home" on it. I
already created these two images, so I simply have to call the right image
URL from the user control.
Unfortunately, I don't know how to go about writing this part of the code.
FileInfo and DirectoryInfo classes require a path, but how do I tell these
classes to check the current page's location (not uc.ascx's location)? I
would like only one uc.ascx file.
Thanks.