Friday, December 19, 2008

change theme of page dynamically

protected void Page_Load(object sender, EventArgs e)
{    Page.Header.Controls.Add( gettheme());


protected HtmlLink gettheme()
HtmlLink lk = new HtmlLink();
// <link type="text/css" href=StyleSheet.css rel=Stylesheet />
lk.Attributes.Add("type", "text/css");
lk.Attributes.Add("href", "StyleSheet1.css");
lk.Attributes.Add("rel", "Stylesheet");
return lk;

No comments :

Post a Comment

AJAX, asp,, and sql server security, IntemIndex, C#, Css, DataBinder.Eval, DataKeyNames, Datalist, Datapager, DataSet, DataTable, DropDownList, FindControl, gridview, JavaScript, jquery, Listview, Paging, Regex, RegularExpression, Repeater, Server side validation, Sql Server, timer, timercallback, Validation, XML, xmlnode, XPath