紧急! aspx页面上按钮的响应事件,望高手指点.
我的aspx页面上有一个TextBox,一个Label,两个Button.
ID:分别为:TextBox1,Label1,Button1,Button2.
我现在想Button2隐藏掉,它的click事件也从Button1得到.
也就是页面上可显示的控件有TextBox1,Label1,Button1
click事件:
button1的click:
Label1.Text= "你点击了Button1";
button2的Click
Label1.Text= "你点击了Button2";
我想只通过Button1,根据TextBox1.Text的不同,使响应不同的Click事件.
即:当TextBox1.Text=="A" 时,点击Button1 显示:你点击了Button1
否则,同样点击Button1, 显示:你点击了Button2.