Image not shown in masterpage when content page is in sub-folder.
-
in MasterPage
if content page is in root folder, It works fine. but for sub-folders, pages not showing image. How to make a Master page standard for root and sub-folder? Regards Asif Rehman
-
in MasterPage
if content page is in root folder, It works fine. but for sub-folders, pages not showing image. How to make a Master page standard for root and sub-folder? Regards Asif Rehman
Keep the image relative to the root folder and add runat="server" attribute.
<img runat="server" src="~/Images/logo.jpg" />
Assuming that the Images folder is present in the Root folder. Hope this will help you.
Anurag Gandhi.
http://www.gandhisoft.com
Life is a computer program and every one is the programmer of his own life.
My latest article: Group GridView Data -
Keep the image relative to the root folder and add runat="server" attribute.
<img runat="server" src="~/Images/logo.jpg" />
Assuming that the Images folder is present in the Root folder. Hope this will help you.
Anurag Gandhi.
http://www.gandhisoft.com
Life is a computer program and every one is the programmer of his own life.
My latest article: Group GridView DataThanks for your little but effective help. How to format server control element in css file. normally we can format html controls like div { ... } but how to format asp:label & other controls. should we write it as asp:label { ... } Regards Asif Rehman
-
Thanks for your little but effective help. How to format server control element in css file. normally we can format html controls like div { ... } but how to format asp:label & other controls. should we write it as asp:label { ... } Regards Asif Rehman
CSS styling should target the appropriate html control that an asp.net control is rendered as. An 'asp:Label' renders as a 'Span' html control.
Rhys "With no power comes no responsibility"
-
Thanks for your little but effective help. How to format server control element in css file. normally we can format html controls like div { ... } but how to format asp:label & other controls. should we write it as asp:label { ... } Regards Asif Rehman
Asif Rehman wrote:
How to format server control element in css file
Just as you are formating Html controls in css files, It is convension to format server controls in .skin files. Just google "Asp.Net Themes" and you will understand how you can implement it.
Anurag Gandhi.
http://www.gandhisoft.com
Life is a computer program and every one is the programmer of his own life.
My latest article: Group GridView Data