ASP.net code C# รวมๆสำหรับ Tools พื้นฐาน
posted on 14 Oct 2009 16:48 by techinnoreview in MITTpublic partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text = TextBox2.Text + "
" + TextBox1.Text + "
" + TextBox3.Text + "
";
" + TextBox1.Text + "
" + TextBox3.Text + "
";
}
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Label1.Text = TextBox2.Text + "
" + TextBox1.Text + "
" + TextBox3.Text + "
";
" + TextBox1.Text + "
" + TextBox3.Text + "
";
Label1.Text += DropDownList1.SelectedValue + "
";
";
int i;
for (i = 0; i < ListBox1.Items.Count; i++)
{
if (ListBox1.Items[i].Selected)
{
Label1.Text+=ListBox1.Items[i].Value +"
";
";
}
}
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
Label1.Text = TextBox2.Text + "
" + TextBox1.Text + "
" + TextBox3.Text + "
";
" + TextBox1.Text + "
" + TextBox3.Text + "
";
Label1.Text += DropDownList1.SelectedValue + "
";
";
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
Label1.Text = TextBox2.Text + "
" + TextBox1.Text + "
" + TextBox3.Text + "
";
" + TextBox1.Text + "
" + TextBox3.Text + "
";
Label1.Text = DropDownList1.SelectedValue + "
";
";
}
protected void ListBox1_SelectedIndexChanged(object sender, EventArgs e)
{
}
}
edit @ 14 Oct 2009 16:49:15 by Auttapong Maesincee
Tags: array, asp, class, code, function double string, list, net, object0 Comments