Reading Notes --asp.net 2.0 Server Components and controls advanced programming 0622
Source: Internet
Author: User
1. htmltextwriter
Protected override void render (htmltextwriter writer)
2. GAC Program Set Name version Cultural Public Key tag
[Assembly: assemblyculture ("")]
[Assembly: assemblyversion ("1.0.0.0")]
[Assembly: assemblykeyfile ("Keyfile. SNK")]
Strongly-named assembly
3. Obtain the Public Key
Sn-K Keyfile. SNK
4. Property/attribute)
Attribute name and value browsableattribute
Descriptattribute
Default Value: defavaluvalueattribute
CATEGORY group categoryattribute
5. Default properpropertyattribute of the control
Application attribute toolboxdateattribute
Exp. [toolboxdata ("<{0}: controlname ......> </{0}: controlname>")]
6. tagprefix: assemblyinfo. CS
[Assembly: tagprefix ("customcomponents", "Custom")]
7. Enumeration
Htmltextwritertag
Htmltextwriterattribute
Htmltextwriterstyle
8. Status
When Asp.net processes a new request, a new page object is created and then released.
Attribute get set accessors must be delegated to viewstate, rather than a field
Public String fieldname
{
Get {return viewstate ["F"]! = NULL? (String) viewstate ["F"]: ""}
Set {viewstate ["F"] = value ;}
}
9. User Control. ascx
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service