开发者

no autopostbacks are working on asp.net page

开发者 https://www.devze.com 2023-03-16 14:01 出处:网络
I have an asp.net page that has some sort of data load problem.I\'m trying to find the bad data, but the result of the bad data is that no control on the page will autopostback.Linkbuttons, Dropdown L

I have an asp.net page that has some sort of data load problem. I'm trying to find the bad data, but the result of the bad data is that no control on the page will autopostback. Linkbuttons, Dropdown Lists, etc. on the page do absolutely nothing when clicked. I was just wanting to know, does anyone know what would be wrong as far as javascript or html, on the page that could cause no controls to work anymore? I even have a radtabbar from Telerik on the page and it does nothing wh开发者_如何学运维en clicked as well. If anyone has any ideas of what I should look for, I'd be very appreciative. If I can maybe see what's wrong on the page, that would help me track down where the data is failing...

Thanks!


Nothing worse than 5000+ lines of code that could all be the culprit (as far as you are aware). I would examine all the javascript that is occurring in either the markup or code behind. It may be the case that there is javascript handling any form submits and cancelling them. This would cause no post backs to occur.

Also check if your code behind implements the interface IPostBackHandler. The method required by the interface is RaisePostBackEvent(string args). There could be bugs in this method somehow swallowing post backs more or less.

Bottom line, lots and lots of possibilities.


I had a similiar problem with a rogue 'div' overlapping my controls without being visible and rendered them unusable.


Make sure in your @Page that AutoEventWireup="true"

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号