WebForm_DoPostBackWithOptions没有定义 [英] WebForm_DoPostBackWithOptions is not defined
问题描述
我下载并安装MS的股票操盘应用程序。我运行Vista旗舰版,IIS7,VS 2008 / .NET 3.5。整个程序大约是120 MB因此是相当复杂,但似乎都来自MSI安装罚款。当我运行应用程序,并尝试登录我点击登录链接后得到一个JavaScript错误:
I downloaded and setup MS's Stock Trader app. I'm running Vista Ultimate, IIS7, VS 2008 / .NET 3.5. The entire app is about 120 MB so is quite involved but it all seemed to setup fine from the msi. When I run the app and try to login I get a javascript error after clicking the Login link:
WebForm_DoPostBackWithOptions is not defined
当我查看网页源代码的链接登录呈现以下内容:
When I view the page source the Login link renders the following:
<a id="LinkLogin" class="Button" href="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("LinkLogin", "", false, "", "Login.aspx", false, true))">Login</a>
我GOOGLE了这一点,并发现,人们在IIS 6中使用了一个解决方案:
I've googled this and found a solution that people have used in IIS 6:
的调出IIS和虚拟目录单击鼠标右键。选择属性。在应用程序设置部分在虚拟目录选项卡,单击配置按钮。这带来了映射选项卡。为突出个.axd的项,然后单击编辑。可以肯定的是,左下角复选框检查文件是否存在被选中!如果没有,请取消勾选,然后单击确定。你看到一个.NET网页做查看源文件时,WebResource.axd的引用实际上并不链接到一个物理文件,因此,如果选中此复选框,则脚本没有得到正确加载。的
不过,我看不出怎么办上述IIS 7中有2个条目WebResource.axd的,而不是与上述设置的处理程序映射一节。有没有人有一个解决问题的办法,或不知道如何实现上述IIS 6修复程序IIS 7?
However I can't see how to do the above in IIS 7. There is a "Handler Mappings" section with 2 entries for "WebResource.axd" but not with the settings mentioned above. Does anyone have a solution to the problem, or know how to implement the IIS 6 fix above in IIS 7?
推荐答案
解决方案之一是设置的LinkButton的CausesValidation =假
One solution is to set the LinkButton CausesValidation=false
这篇关于WebForm_DoPostBackWithOptions没有定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!