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
Post a Comment