June 2009
M T W T F S S
« May   Jul »
1234567
891011121314
15161718192021
22232425262728
2930  

Define css, js from code behide

1 protected void Page_Load(object sender, EventArgs e)
2 {
3 LabelSaveStatus.Text = “”;
4 if (!IsPostBack)
5 {
6 HtmlHead head = (HtmlHead)Page.Header;
7
8 HtmlLink link = new HtmlLink();
9 link.Attributes.Add(href, Page.ResolveClientUrl(http://yui.yahooapis.com/2.5.2/build/fonts/fonts-min.css));
10 link.Attributes.Add(type, text/css);
11 link.Attributes.Add(rel, stylesheet);
12 head.Controls.Add(link);

1 comment to Define css, js from code behide

  • RRaveen

    Dear Friends,

    I hope you are doing well. I have launched a web site http://www.codegain.com and it is basically aimed C#,JAVA,VB.NET,ASP.NET,AJAX,Sql Server,Oracle,WPF,WCF and etc resources, programming help, articles, code snippet, video demonstrations and problems solving support. I would like to invite you as an author and a supporter. Looking forward to hearing from you and hope you will join with us soon.

    Please forward this email to all of your friends who are related IT. Send to us your feed about site also.

    Thank you
    RRaveen
    Founder CodeGain.com

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>