Asp.Net Control Summary

mybwu_com發表於2013-12-24

Asp.Net Control

Html Server Control

·Use Server Change Event totrack event(input , checkbox , radio , select)

·Need submit data to Server ,then server can trigger

·View State must enable

Focus

·Use script set auto focuscontrol :

<script>WebForm_AutoFocus(“controlID”)</script>

·Set in Form:

<Formid = “form1” DefaultFocus = “TextBox1” runat = “Server” >

·Set more than 1 default button , use panel

Others

·For ImageButton ,Can Get X , YPosition from EventArgs

·Set Validation Property for OwnControl

[ValidationProperty(“Text”)]

MyTextBox : WebControl{}

·Ad Rotator can use foradvertisement

·Calendar Control

相關文章