Looking for a smart way to add new landing pages that are 90% similar. (asp.net) -


in asp.net website, keep adding new landing pages creating new page derives common master page. these "new" pages 90% same (only background image differs).

i ended in solution 10+ similar .aspx pages. there way smarter. (not having add different .aspx every "new" page)?

how adding code renders css body {background-image:url(...)} part? trick without having have code-behind dll file:

<% string[] backgrounds = {"b1.jpg", "b2.jpg", "b3.jpg"};    random rnd = new random();    string background = backgrounds[rnd.next(0, backgrounds.length)]; %> <style type="text/css">   body {background-image:url("<%=background%>");} </style> 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -