" __ O"在Visual Studio 2008做ASP.NET不宣 [英] "__o" is not declared in Visual Studio 2008 doing ASP.NET

查看:98
本文介绍了" __ O"在Visual Studio 2008做ASP.NET不宣的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经越来越这恼人的错误/缺陷在Visual Studio 2008中颇有几分做ASP.NET MVC的时候。

I have been getting this annoying error/bug in Visual Studio 2008 quite a bit when doing ASP.NET MVC.

__ O不宣

这是什么问题,我怎么能解决这个问题?

What is the problem, and how can I fix it?

推荐答案

就在顶部的页面上添加这样的:

Just add this on the page at the top:

<%="" %>

...所以现在我的ASP.Net内容占位符是这样开始的:

...So now my ASP.Net content placeholder begins like this:

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%="" %>

从报价:米哈伊尔·阿尔希波夫(MSFT)的网络日志

为了提供智能感知上述&lt;在设计时%=%>块,ASP.NET产生分配到一个临时__o变量和语言(VB或C#),然后提供智能感知的变量,当你键入的&lt ;。%=%>块,同样,当你键入x =会发生什么

In order to provide intellisense in <%= %> blocks at design time, ASP.NET generates assignment to a temporary __o variable and language (VB or C#) then provide the intellisense for the variable when you type in the <%= %> block, similarly to what happens when you type x=.

这篇关于&QUOT; __ O&QUOT;在Visual Studio 2008做ASP.NET不宣的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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