Using System;
Using System. Collections;
Using System. ComponentModel;
Using System. Data;
Using System. Drawing;
Using System. Web;
Using System. Web. SessionState;
Using System. Web. UI;
Using System. Web. UI. WebControls;
Using System. Web. UI. HtmlControls;
Namespace net2
{
/// <Summary>
/// Summary of WebForm5.
/// </Summary>
Public class WebForm5: System. Web. UI. Page
{// Protected protection type. If you want to access a page of aspx, you must use the private estimation of the protection type or above.
Protected System. Web. UI. WebControls. DropDownList DropDownList1;
Protected System. Web. UI. WebControls. ListBox ListBox1;
Protected System. Web. UI. WebControls. RadioButtonList RadioButtonList1;
Protected System. Web. UI. WebControls. Label Label1;
Protected System. Web. UI. WebControls. Button Button1;
Protected System. Web. UI. WebControls. Label Label2;
Protected System. Web. UI. WebControls. Label Label3;
Protected System. Web. UI. WebControls. Label Label4;
Protected System. Web. UI. WebControls. CheckBoxList CheckBoxList1;
Private void Page_Load (object sender, System. EventArgs e)
{
// Place user code here to initialize the page
// Some WEB controls, if not selected. Then retrieve its value. Then it will go wrong.
If (! IsPostBack)
{
// The first one is an array.
String [] str1 = new string [3] {"*", "**", "***"}; // There is also a method to define an array string [] str1 = new string [3]; str1 [0] = ""; in the initial value
// Do not understand the meaning of array. Chinese characters can also be used here
ArrayList option = new ArrayList ();
Option. Add ("first ");
Option. Add ("second ");
Option. Add ("third ");
Option. Add ("fourth ");
Option. Add ("fifth ");
// Hashtable cannot be sorted!
Hashtable HT = new Hashtable ();
HT. Add ("1", "");
HT. Add ("2", "B ");
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