I have been getting this annoying error/bug in Visual Studio 2008 quite a bit when doing ASP.NET MVC.
"__o" is not declared
What is the problem, and how can I fix it?
Just add this on the page at the top:
<%="" %>
...So now my ASP.Net content placeholder begins like this:
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%="" %>
Quote from: Mikhail Arkhipov (MSFT)'s WebLog
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=.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With