Get the App
SLTechnology News&Howtos  ›  Development  › 

How to call asp.net to dynamically add stylesheets in the backend

Shulou Source: shulou.com Published: 2022-06-03 19:32:31 11月12日 Update

This article is about how asp.net dynamically adds stylesheets in the back end. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

The specific implementation methods are as follows:

HtmlLink CssControl = new HtmlLink (); CssControl.Href = url;CssControl.Attributes.Add ("rel", "stylesheet"); CssControl.Attributes.Add ("type", "text/css"); page.Header.Controls.Add (CssControl); Thank you for reading! On "asp.net in the back-end dynamic add stylesheet how to call" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!

Tags: Dynamic style content more articles good practical articles methods look knowledge reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Xiaomi OPPO Reno Redmi MariaDB