__doPostBack没有定义 [英] __doPostBack is not defined

查看:409
本文介绍了__doPostBack没有定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即时得到这个错误时尝试调用我的网页上的一个__doPostBack,每一页,我在项目中使用__doPostBack的功能,但在这个特殊的网页即时得到的JavaScript错误。

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.

我一直在寻找在互联网上和我读的唯一的事情是,当我有一个unclose标记这个错误happends但我查看网站和它的确定。

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.

错误:__doPostBack没有定义
源文件:HTT://本地主机:99 /项目名/ Disable.aspx
线路:1。

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

推荐答案

__ doPostBack()应该由任何ASP.NET Web控件可能导致一个回被自动包含。听起来你在一些JavaScript你写手动调用它。如果是这样,您将需要包括的WebControl,使在插入到页面上确认的功能。

__doPostBack() should be automatically included by any ASP.NET WebControl that could cause a post back. You sound like you are calling it manually in some Javascript you wrote. If so, you will need to include a WebControl, to make sure that function in inserted onto the page.

这篇关于__doPostBack没有定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆