I am trying to open a window from grid item to display additional info about the item.
To do that I need to pass the product name.
I am trying this, but at run time I get 'the tag is not well formed' .
How can I do this correctly?
Thanks
Clive
To do that I need to pass the product name.
I am trying this, but at run time I get 'the tag is not well formed' .
How can I do this correctly?
Thanks
Clive
JAVASCRIPT |
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> |
<script type="text/javascript" language="javascript"> |
function showWindow(url) { |
var oWnd = $find("<%=RadWindow3.ClientID%>"); |
oWnd.setUrl(url); |
oWnd.show(); |
} |
function OnClientClose(oWnd) { |
oWnd.setUrl("about:blank"); // Sets url to blank |
} |
</script> |
</telerik:RadCodeBlock> |
THE WINDOW |
<telerik:RadWindow ID="RadWindow3" runat="server" |
Skin="Black" Behaviors="Move,Close,Resize" VisibleStatusbar="False" |
Animation="Fade" |
IconUrl="~/images/favicon16.gif" Height="170px" Width="280px" |
OnClientClose="OnClientClose"> |
</telerik:RadWindow> |
THE GRID COLUMN |
<telerik:GridTemplateColumn DataField="Name" |
HeaderText="Name" SortExpression="Name" |
UniqueName="Name"> |
<EditItemTemplate> |
<asp:TextBox ID="NameTextBox" runat="server" |
Text='<%# Bind("Name") %>'></asp:TextBox> |
</EditItemTemplate> |
<ItemTemplate> |
<asp:HyperLink ID="HyperLink1" runat="server" |
NavigateUrl="javascript:onclientclick=showWindow('../windows/en-primeur-tasting.aspx?Name=" & <%# Eval("Name") %> & "');"> |
<%# Eval("Name") %> |
</asp:HyperLink> |
</ItemTemplate> |
<HeaderStyle Width="250px" /> |
</telerik:GridTemplateColumn> |