G
Guest
I am trying to open a new window from a hyperlink control in a gridview
(vb.net).
I have this..
<asp:TemplateField HeaderText="Project" SortExpression="Project">
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" Text='<%# Bind("Project") %>'
runat="server"
NavigateUrl='<%# String.Format("java
script
penWindow('/SomePage.aspx?SomeID={0}','SomeDescription','scrollbars=yes,width=442,height=500');",
((System.Data.DataRowView)Container.DataItem)["SomeField"] as string)
%>'></asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
The navigateURl property is displaying an error "a call to bind mucst be
assigned to a property of a control inside a template".
What am I doing wrong?
(vb.net).
I have this..
<asp:TemplateField HeaderText="Project" SortExpression="Project">
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" Text='<%# Bind("Project") %>'
runat="server"
NavigateUrl='<%# String.Format("java
script
((System.Data.DataRowView)Container.DataItem)["SomeField"] as string)
%>'></asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
The navigateURl property is displaying an error "a call to bind mucst be
assigned to a property of a control inside a template".
What am I doing wrong?