__doPostBack is not defined

2019-01-18 01:46发布

Im getting that error when try to call a __doPostBack on one of my pages, every page that i have in the project use __doPostBack function but in this particular page im getting that Javascript error.

i was looking in the internet and the only thing i read is that this error happends when i have a unclose tag but i review the site and its ok.

Error: __doPostBack is not defined Source File: htt://localhost:99/ProjectName/Disable.aspx Line: 1

25条回答
欢心
2楼-- · 2019-01-18 02:49

Try calling the RegisterRequiresPostBack method. It should make the ASP.NET runtime include the __doPostBack code.

查看更多
登录 后发表回答