470,594 Members | 1,101 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,594 developers. It's quick & easy.

open.window javascript function not working within GridView

Dear all,
I tried to replace the GridView Column's HyperLinkField
"DataNavigateUrlFormatString" property with a java script pop up
window, but wehen i preview the page, the link is REMOVED! Does any one
see any thing wrong in the code below?

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
<asp:BoundField DataField="ITEM_ID" HeaderText="Item
ID" ReadOnly="True"
Visible="False" />
w=window.open('../ItemsDetails.aspx?ITEM_ID={0}&ITEM_MODEL={1}&ITEM_ MANUFACTURE={2}',null,'width=600,height=400');"
<asp:BoundField DataField="ITEM_MANUFACTURER"
SortExpression="ITEM_MANUFACTURER" />
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:MyDBConnectionString
ConnectionStrings:MyDBConnectionString.providerNam e %>"
SelectCommand="SELECT [ITEM_ID], [ITEM_MODEL],

May 5 '06 #1
0 1663

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Paul Eaton | last post: by
2 posts views Thread by venkatesh | last post: by
4 posts views Thread by Marcello | last post: by
10 posts views Thread by Marshall Dudley | last post: by
3 posts views Thread by NeverLift | last post: by
26 posts views Thread by yb | last post: by
5 posts views Thread by JNariss | last post: by
18 posts views Thread by len.hartley | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.