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;
)
)
Popular Articles
Categories
- CSS Properties (491)
- CSS Tutorial (1154)
- CSS Tutorial By Examples (1201)
- Css+Div Web Design (3274)
- Xhtml and Web Design (1797)
Archives
Pages






Leave a Reply