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