"Could not open in Design view. Quote values differently..." solved!

By Roy Osherove In .Net Quotations, Tips & Tricks

Markdown version

Historical article · Originally published August 28, 2003; technical details may be outdated.

Ever get this message when working in the Vs.Net webform designer?

“Could not open in Design view. Quote values differently inside  a '<%...” etc

This problem is easily solved by replacing nesting double quotes with single quotes. That means if you have this:

<img src="../<%=Application("SERVICE_COMPANY_LOGO")%>">

just change it to this:

<img src='../<%=Application("SERVICE_COMPANY_LOGO")%>'>

that did the job for me.

And thanks Matthew. I got this through DotNet247 :).

More in .Net Quotations

All posts in .Net Quotations