Could not open in Design View

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

VS2003 - I have seen many posts in regards to this and have tried many
suggestions to no avail - the problem is with the followng code:

<ItemTemplate>

<INPUT type="button"
style='<%#ButtonStyle(DataBinder.Eval(Container,"DataItem.Status"))%>'
value="Button"
onclick=javascript:testDload(<%#DataBinder.Eval(Container,"DataItem.Page")%>)>

</ItemTemplate>

In particualr the onclick event - if I remove the event I can get into
Design View: I have tried the following:

onclick=testDload('<%#DataBinder.Eval(Container,"DataItem.Page")%>')

onclick=testDload("<%#DataBinder.Eval(Container,"DataItem.Page")%>")

onclick="testDload('<%#DataBinder.Eval(Container,"DataItem.Page")%>')"

onclick='testDload('<%#DataBinder.Eval(Container,"DataItem.Page")%>')'

what am I missing?
 
Solution:

onclick='javascript:testDload(<%#DataBinder.Eval(Container,"DataItem.Page")%>)'

Scott
 
Back
Top