By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,009 Members | 1,487 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,009 IT Pros & Developers. It's quick & easy.

error - Could not lod in Design View

P: n/a
Dear Programmers,

In Visual Studio .NET HTML View screen, I add the following code snippet and
receive the error "Could not lod in Design View" and cannot go back to the
design view. How can I get rid of this? Thanks in advance...

<a href="javascript:showSPInfo('<%# GetSPID(Databinder.Eval(Container,
"DataItem.SPName")) %>')">View</a>
Buran
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Thanks Suresh, the correct format is as following:

<a href='javascript:showSPInfo(<%# GetSPID(Databinder.Eval(Container,
"DataItem.SPName")) %>)'>View</a>

Buran
"Suresh" <an*******@discussions.microsoft.com> wrote in message
news:A3**********************************@microsof t.com...
<a href="javascript:showSPInfo('<%# GetSPID(Databinder.Eval(Container, "DataItem.SPName")) %>')">View</a>
ASP.NET designer doesn't like it when you nest double/single quotes with in a property setting.
Try the followin and see if it helps.

<a href=javascript:showSPInfo('<%# GetSPID(Databinder.Eval(Container, "DataItem.SPName")) %>')>View</a>
Suresh.

----- buran wrote: -----

Dear Programmers,

In Visual Studio .NET HTML View screen, I add the following code snippet and receive the error "Could not lod in Design View" and cannot go back to the design view. How can I get rid of this? Thanks in advance...

<a href="javascript:showSPInfo('<%# GetSPID(Databinder.Eval(Container, "DataItem.SPName")) %>')">View</a>
Buran

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.