问题描述
大家好,
我对asp:Button Click事件有疑问.单击事件不会触发,并且当有人单击asp:Button时,PostBack始终为false.我有两个URL,例如www.example.com/en/pages/home.aspx和www.example.com/home.aspx.
第一个URL触发了按钮单击事件,我通过自定义HTTPModule处理了第二个URL.在模块中,我将"/en/pages"添加到application.Request.Url.PathAndQuery.最后,我
字符串urlToredirecz ="/en/pages" + application.Request.Url.PathAndQuery
this.application.Context.Server.TransferRequest(urlToRedirect);
但是单击页面提交按钮不会触发.我不理解我该如何处理.有人请帮助我.
先感谢您.
Aruna
Hi All,
I have a problem with asp:Button Click event. The click event is not firing and PostBack is always false when someone clicks the asp:Button. I have two URLS such as www.example.com/en/pages/home.aspx and www.example.com/home.aspx.
The button click event is firing for first URL and I handle the second URL via a custom HTTPModule. In the module, I add "/en/pages" to the application.Request.Url.PathAndQuery. And finally I do
string urlToredirecz = "/en/pages"+ application.Request.Url.PathAndQuery
this.application.Context.Server.TransferRequest(urlToRedirect);
But the page submit button click is not firing. I don''t undertand how can I handle this. Anyone please help me.
Thank you in advance.
Aruna
推荐答案
这篇关于asp:button click事件未触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!