简体   繁体   English

Web应用程序从vs2008转换为vs2010?

[英]Conversion of a Web application from vs2008 to vs2010?

I have a web application which was working well until I converted it from vs2008 to vs2010. 我有一个运行良好的Web应用程序,直到将其从vs2008转换为vs2010为止。 It has to support IE6 .I am using some jquery and javascript in my application. 它必须支持IE6。我在应用程序中使用了一些jquery和javascript。 so when I first run the web application in vs2010 it was fine ,except it popped up a message stating that change the following setting in IE so I changed the settings under Internet Options > Advanced > cleared the disable script debugging option. 因此,当我第一次在vs2010中运行Web应用程序时,一切都很好,除了它弹出一条消息,指出更改IE中的以下设置,因此我更改了Internet选项>高级>清除了禁用脚本调试选项下的设置。

The following error is popped up in a message box after I change the above settings in IE6. 在IE6中更改以上设置后,在消息框中弹出以下错误。

Error: 错误:

A runtime Error has occured.
Do you wih to debug ?

Line:2
Error:syntax error

I have various confirmation boxes generated from javascript and jquery in the application.If I disable that option in IE ,I am unable to see those boxes now. 我有从应用程序中的javascript和jquery生成的各种确认框。如果在IE中禁用该选项,则现在看不到这些框。

Is it some thing with the conversion from vs2008 and vs2010 or is it some thing with IE.I completely lost track here I think, I would appreciate if someone can guide me . 是vs2008和vs2010的转换还是IE。我在这里完全迷失了方向,如果有人可以指导我,我将不胜感激。

Just a wild guess here but you might want to check your doctype declaration. 这里只是一个疯狂的猜测,但是您可能想检查您的doctype声明。 I think that VS 2008 uses <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 我认为VS 2008使用<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

and vs 2010 uses the html5 declaration standard. 和vs 2010使用html5声明标准。 I'm thinking that the doctype may be causing IE to run differently, eg not in quirks mode. 我认为doctype可能会导致IE以不同方式运行,例如不在怪癖模式下运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM