G
Guest
I have a template for a datagrid that I need to contain a hyperlink and
populate the url string with data from a DB. I have the following code below
which seems to be fine but can't open the design tool from html view because
of a message stating i need to have '' around the data item.
Code:
<asp:TemplateColumn>
<ItemTemplate>
<a href='javascript:void'
onclick=window.open('Amortize/?N=<%# databinder.eval(Container.dataitem,"N")
%>&I=<%# databinder.eval(Container.dataitem,"I") %>&PV=<%#
databinder.eval(Container.dataitem,"PV")
%>','mywin','left=20,top=20,width=500,height=500,toolbar=1,resizable=0)'>View
Amortization</a>
</ItemTemplate>
</asp:TemplateColumn>
Can you see anything that I need to change?
populate the url string with data from a DB. I have the following code below
which seems to be fine but can't open the design tool from html view because
of a message stating i need to have '' around the data item.
Code:
<asp:TemplateColumn>
<ItemTemplate>
<a href='javascript:void'
onclick=window.open('Amortize/?N=<%# databinder.eval(Container.dataitem,"N")
%>&I=<%# databinder.eval(Container.dataitem,"I") %>&PV=<%#
databinder.eval(Container.dataitem,"PV")
%>','mywin','left=20,top=20,width=500,height=500,toolbar=1,resizable=0)'>View
Amortization</a>
</ItemTemplate>
</asp:TemplateColumn>
Can you see anything that I need to change?