Wednesday, 15 September 2010

html - ASP.NET Dynamically Set the Theme Name in ImageUrl Porperty -



html - ASP.NET Dynamically Set the Theme Name in ImageUrl Porperty -

i have used image hardcoded it. there alternative of multitheme , want utilize if 1 person selects bluish theme bluish image should show , if orange theme chosen orange image should show up..

this asp.net image code hardcoded

<asp:image id="image4" runat="server" imageurl="~/app_themes/default/images/listingnext.png" />

but don't want want show image on theme bases, said if bluish blue image show , if orange or reddish thier respective image should show..

i tried this.

<asp:image id="image4" runat="server" imageurl="~/app_themes/default"+<%this.theme%>+"/images/listingnext.png" />

but not working, how create possible?

morpheus right instead of using following;

"<%=resolveurl(string.format("~/app_themes/{0}/images/listingnext.png", page.theme)) %>"

try this;

'<%# resolveurl(string.format("~/app_themes/{0}/images/listingnext.png", page.theme)) %>'

html css internet-explorer

No comments:

Post a Comment