A
ashtek
I have an <ASP:HYPERLINK> on a datagrid (templatecolumn) and I need to
open a new window with no toolbar and specific height & width onclick
of the link. I also want to pass the PK to this new window.
<ASP:HYPERLINK ID="lnkNewWin" RUNAT="server" NAVIGATEURL="#"
ONCLICK="javascript:window.open('NewWin.aspx?PK=<%#
DataBinder.Eval(Container.DataItem,"PK")%>','','toolbar=0,width=600,height=600,scollbars=1')"
TEXT="Click"></ASP:HYPERLINK>
The above code throws an error "Server tag is not well formed".
I am using ONCLICK because I want to specify toolbar=no and height &
width for the new window.
If I replace this <%# DataBinder.Eval(Container.DataItem,"PK")%>
with a numeric value (say 10) then it works fine.
Anyone knows what is wrong with the syntax?
Thanks,
Ashish
open a new window with no toolbar and specific height & width onclick
of the link. I also want to pass the PK to this new window.
<ASP:HYPERLINK ID="lnkNewWin" RUNAT="server" NAVIGATEURL="#"
ONCLICK="javascript:window.open('NewWin.aspx?PK=<%#
DataBinder.Eval(Container.DataItem,"PK")%>','','toolbar=0,width=600,height=600,scollbars=1')"
TEXT="Click"></ASP:HYPERLINK>
The above code throws an error "Server tag is not well formed".
I am using ONCLICK because I want to specify toolbar=no and height &
width for the new window.
If I replace this <%# DataBinder.Eval(Container.DataItem,"PK")%>
with a numeric value (say 10) then it works fine.
Anyone knows what is wrong with the syntax?
Thanks,
Ashish