Asp.net: can not see design preview

M

mahesh

Hi,

I am using Visual Studio.NET for creating ASP.NET pages.
This page has a Repeater control, place holder and some
code <%# DataBinder.Eval(Container.DataItem, "Location") %

Here I can not see Design preview of this page because I
am getting error like "Could not open in design view.
Quote values differently inside a '<% . "value" . %.'
block".

Please tell me how I can see a design view here.

Thanks in advance
 
P

Pat Alessi

You probably have something like <a href="<%#
DataBinder.Eval(Container.DataItem, "Location")%>"

You need to change it to href='...' because the environment thinks
that the quote inside the <% tags is closing the quote in the href = "
....

Does that help?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top