In ASP.NET, sometimes dynamically transform CSS, such as sometimes doing personalized pages, you can do this
head>, in the page to replace the CSS, use the following code SUB Page_LOAD (Sender As Object, EVENTARGS) if not (ispostback) MyStylesheet.attributes.add ("href", "/ CSS / FLOSTYLE.CSS ") Endness Sub See how to set up online in C #
Below this must be placed between
head> // Define protected in .cs file System.Web.ui.htmlControls.htmlGenericControl CSS1; Write css1.attributes.add ("href", "/ css / flostyle.css" in Page_Load!