A
ashtek
Hi,
I am using a hyperlink on a datagrid (templatecolumn) to display a
link. Onclick of this link I want to open a new window without tool bar
& with certain width & height.
I am using this code
<ASP:TEMPLATECOLUMN HEADERTEXT="Details">
<ITEMTEMPLATE>
<ASP:HYPERLINK ID="lnkDetails" RUNAT="server" NAVIGATEURL='<%#
"Details.aspx?ID=" + DataBinder.Eval(Container.DataItem,"ID")%>'
TARGET="_blank" TEXT="Details"></ASP:HYPERLINK>
</ITEMTEMPLATE>
</ASP:TEMPLATECOLUMN>
This opens a new window but with toolbar & default width & height.
I also tried the following:
NAVIGATEURL="javascript:window.open('Details.aspx?ID=" + <%#
DataBinder.Eval(Container.DataItem,"ID")%> +
"','width=500,height=500,toolbar=no');"
but it says "The server tag is not well formed."
Can anyone tell me how to open a customized window when I click on
<asp:hyperlink> ?
Thanks,
Ashish.
I am using a hyperlink on a datagrid (templatecolumn) to display a
link. Onclick of this link I want to open a new window without tool bar
& with certain width & height.
I am using this code
<ASP:TEMPLATECOLUMN HEADERTEXT="Details">
<ITEMTEMPLATE>
<ASP:HYPERLINK ID="lnkDetails" RUNAT="server" NAVIGATEURL='<%#
"Details.aspx?ID=" + DataBinder.Eval(Container.DataItem,"ID")%>'
TARGET="_blank" TEXT="Details"></ASP:HYPERLINK>
</ITEMTEMPLATE>
</ASP:TEMPLATECOLUMN>
This opens a new window but with toolbar & default width & height.
I also tried the following:
NAVIGATEURL="javascript:window.open('Details.aspx?ID=" + <%#
DataBinder.Eval(Container.DataItem,"ID")%> +
"','width=500,height=500,toolbar=no');"
but it says "The server tag is not well formed."
Can anyone tell me how to open a customized window when I click on
<asp:hyperlink> ?
Thanks,
Ashish.