Asp.Net btn点击事件 [英] Asp.Net btn click event
本文介绍了Asp.Net btn点击事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我该怎么办,
在btn click事件上禁用btn控件,并在启用btn控件中调用btn click事件.
受保护的void Button1_Click(对象发送者,EventArgs e)
{
Button1.Enabled =假;
}
上面的代码在IE中不起作用,Mozilla,Chrome
How can i do,
on btn click event disable the btn control and also call btn click event in that enable btn control .
protected void Button1_Click(object sender, EventArgs e)
{
Button1.Enabled = false;
}
above code not work in IE ,Mozilla,Chrome
推荐答案
protected void Button1_Click(object sender, EventArgs e)
{
Button1.Enabled = false;
}
会禁用您刚刚单击的按钮
that would disable the button u just clicked
protected void Button1_Click(object sender, EventArgs e)
{
Button1.Enabled = false;
}
这会隐藏按钮
你是什么意思
还调用了启用btn控件的btn click事件"
this would hide the button
what do u mean by
"also call btn click event in that enable btn control "
这篇关于Asp.Net btn点击事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文