![]() In this example, I create a CSS file in the directory of the AppStyles and name it to StyleSheet.css and then dynamically create an HTML control ( HtmlLink) and define attributes of the link tag and then add them to the header of the page in the load event of the page. ![]() Now when the ASP page is loaded, the link tag is dynamically added to the page and style can be rendered. Add HtmlLink instance to the header of the current page Defining attributes and values of the link tag Copy Code protected void Page_Load( object sender, EventArgs e)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |