[英]asp.net Button event firing problem
I am using an asp Button the following way: 我通过以下方式使用asp Button:
<asp:Button ID="ButtonSave" runat="server" Text="Save" OnClick="ButtonSave_Click" />
and the code of the handler looks something like this: 处理程序的代码如下所示:
protected void ButtonSave_Click(object sender, EventArgs e)
{
Authenticate();
//some other code here
//redirect to certain page here
}
While debugging, I put a breakpoint at Authenticate, but it seems that it doesn't enter the function, although the redirection takes place and i don't do any more redirecting in the file only this one. 在调试时,我在Authenticate处设置了一个断点,但似乎没有输入该函数,尽管发生了重定向,并且仅此一个,我不再在文件中进行任何重定向。 I don't understand what's going on, so if anyone could help i would be very grateful. 我不知道发生了什么,所以如果有人可以帮助我将不胜感激。
There are multiple possible reasons. 有多种可能的原因。 Four: 四:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.