PopUp New Window in List Control with Multiple Parameters
Just saw 2 very similar post in the ASP.NET Forums yesterday (It would probably be a FAQ about using Javascript and DataGrid)
- opening a new window from inside a DataGrid
My suggestion solution is like that:
PopUp New Window in List Control with Multiple
Parameters
<asp:TemplateColumn>
<ItemTemplate>
<asp:HyperlInk
ID="HyperLink1"
Runat="Server"
NavigateUrl='<%#
"Javascript:var PopUpWin =
window.open(""WebForm2.aspx?Param1=" &
DataBinder.Eval(Container.DataItem,"Field1") &
"&Param2=" & DataBinder.Eval(Container.DataItem,
"Field2") & """)" %> '
>
<%# Container.DataItem("TextField") %>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn>
Colt
P.S. the approach above would avoid the problem of showing the screen of [Object] on the parent page.