G
Guest
I can use a good help here with what looks like a simple problem.
I have a control called Header.ascx in /Control/System directory, where / is
my web application directory.
The header is used in a master page called MasterPage.master in the /
directory.
I have a Default.aspx in / which uses the master page in the root. The user
control (which is really in the master page) in this page shows fine.
The problem is /directory1/earthquake.aspx. This page also uses the master
page in the / directory.
When this page is displayed, the control does not show like the Default.aspx
in the / directory.
So, I tried changing <img src="image/abc.jpg"> to <img
src="~/image/abc.jpg>, but the images in the user control, which is used in
the master page does not show at all.
What am I doing wrong?
I have a control called Header.ascx in /Control/System directory, where / is
my web application directory.
The header is used in a master page called MasterPage.master in the /
directory.
I have a Default.aspx in / which uses the master page in the root. The user
control (which is really in the master page) in this page shows fine.
The problem is /directory1/earthquake.aspx. This page also uses the master
page in the / directory.
When this page is displayed, the control does not show like the Default.aspx
in the / directory.
So, I tried changing <img src="image/abc.jpg"> to <img
src="~/image/abc.jpg>, but the images in the user control, which is used in
the master page does not show at all.
What am I doing wrong?