Could not open in Design View. (Visual Studio Net)

When open a ASP page In VS.Net .
it's may popup a message:
Could not open in Design view. Quote values differently inside a '<%..."value"...%>' block.

we may solve this by a tip:
find the code that include ***=<%****%> or ***="<%****%>"
and replace it to ***='<%****%>'

like example:
src="<%# DataBinder.Eval(Container.DataItem,"data1") %>"

change to src='<%# DataBinder.Eval(Container.DataItem,"data1") %>'

0 comments: