Cascading Style Sheets Tutorial

ASP.NET application development CSS planning proposals

  Not too much definition, do not only define a CSS document. WEB according to the standards of my colleagues suggested. WEB application of CSS, can be designated for four documents: 
  (1) base.css 
  (2) from.css 
  (3) frame.css 
  (4) list.css 
  The significance of the above document style, I think I do not have introduced it is abundantly clear that (if the portal, is not well suited to such a plan) 

  In order to better use the four CSS document. Course there are many other reasons Oh, we have a code of times. Some of the best settings Page base class. Below are the four I used Page base class. 
  (1) PageBase.cs 
  (2) PageFromBase.cs 
  (3) PageFrameBase.cs 
  (4) PageListBase.cs 
  Here is the source PageBase.cs and PageListBase.cs 

  Public class PageBase: System.Web.UI.Page 
  (… 
  Protected override void OnInit (EventArgs e) 
  (… 
  HtmlLink link = new HtmlLink (); 
  Link.Attributes.Add ( "type", "text / css"); 
  Link.Attributes.Add ( "rel", "stylesheet"); 
  Link.Attributes.Add ( "href", "~ / app_common / styles / base.css"); 
  This.Header.Controls.AddAt (1, link); 

  Base.OnInit (e); 
  ) 

  Public string Key 
  (… 
  Get 
  (… 
  Return Request.QueryString [ "KEY"]; 
  ) 
  ) 
  ) 
  Public class PageListBase: System.Web.UI.Page 
  (… 
  HtmlLink link = new HtmlLink (); 
  Link.Attributes.Add ( "type", "text / css"); 
  Link.Attributes.Add ( "rel", "stylesheet"); 
  Link.Attributes.Add ( "href", "~ / app_common / styles / list.css"); 
  This.Header.Controls.AddAt (2, link); 

  Base.OnInit (e); 
  ) 

  Private int _PageIndex = 0; 
  Public int PageIndex 
  (… 
  Get 
  (… 
  Return _PageIndex; 
  ) 
  Set 
  (… 
  _PageIndex = Value; 
  ) 
  ) 

  Private int _PageSize = 16; 
  Public int PageSize 
  (… 
  Get 
  (… 
  Return _PageSize; 
  ) 
  Set 
  (… 
  _PageSize = Value; 
  ) 
  ) 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • DZone

Popular Articles

  • SEO Study: see from my blog search engine optimization
  • VBScript Essentials of two pages in HTML code to add VBscript
  • Css intensive manual (1)
  • For a drop-down menu Date
  • Flash MX 2004 on the axis effects detailed

This entry was posted on Wednesday, October 31st, 2007 at 12:00 am and is filed under CSS Tutorial By Examples. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

« 15 online web2.0 picture generator
Div effects of the use of achieving IFrame »

Leave a Reply

  • Categories

    • CSS Properties (491)
    • CSS Tutorial (1154)
    • CSS Tutorial By Examples (1201)
    • Css+Div Web Design (3274)
    • Xhtml and Web Design (1797)
  • Archives

    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • March 2007
    • February 2007
    • January 2007
  • Pages

    • About us

Cascading Style Sheets Tutorial