Author: SKVSKV | Posted on: 9/5/2008 9:07:52 AM | Views : 264

Hi

I have a page on which I want to load an image. The image is  /images/Design/Logo.jpg. I have anotehr directory /uc which contails user controls ucHeader.ascx. The Logo.jpg is used in ucHeader.ascx control. Then I used this ucHeader control on various pages. My problem is that the Logo appears fine on the pages in the root directory but any pages in the /Admin directory do not see the logo. I guess it has to do with the Logo.jpg path being not visible to the ucHeader.ascx from /Admin directory but it is visible from the root directory. What is the best way to handle a situation like this? I think that I can add the Logo.jpg as a global resource and then use it in the ucHeader.ascx.However, I do not have an example of how to do this.

ucHeader.ascx:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucHeader.ascx.cs" Inherits="wuc_ucHeader" %>
..........
<td a ...

Go to the complete details ...