harmmeijer
Programmer
When I try to see a page in design view I get the following message:
Could not open in Design view. Quote values differently inside a '<%..."value"...%>' block.
this is the code:
<asp:TemplateColumn HeaderText="<b>Open</b>">
<ItemTemplate>
<a href='openTemplate.aspx?ID=<%# DataBinder.Eval(Container.DataItem, "ID" %>'">
Open
</a>
</ItemTemplate>
</asp:TemplateColumn>
I can change the code to:
<asp:TemplateColumn HeaderText="<b>Open</b>">
<ItemTemplate>
<a style="cursor:hand" someID='<%# DataBinder.Eval(Container.DataItem, "ID" %>' onclick="this.href='openTemplate.aspx?ID=' + this.url">
Open
</a>
</ItemTemplate>
</asp:TemplateColumn>
Is there another way of seeing the aspx page in design view, or do you have to put all db values the format: value='<%%>'?
Could not open in Design view. Quote values differently inside a '<%..."value"...%>' block.
this is the code:
<asp:TemplateColumn HeaderText="<b>Open</b>">
<ItemTemplate>
<a href='openTemplate.aspx?ID=<%# DataBinder.Eval(Container.DataItem, "ID" %>'">
Open
</a>
</ItemTemplate>
</asp:TemplateColumn>
I can change the code to:
<asp:TemplateColumn HeaderText="<b>Open</b>">
<ItemTemplate>
<a style="cursor:hand" someID='<%# DataBinder.Eval(Container.DataItem, "ID" %>' onclick="this.href='openTemplate.aspx?ID=' + this.url">
Open
</a>
</ItemTemplate>
</asp:TemplateColumn>
Is there another way of seeing the aspx page in design view, or do you have to put all db values the format: value='<%%>'?