hi all,
Inside my datagrid item template as having an asp:hyperlink and on the
clicked i have to open a detail page in a popup window which should not
have any address bar,tool bar etc.
i wrote one function using the window.open() but when calling this inside
the datagrid ..its not recognising... the databinder is not assigning the
relevant id to the javascript function argument ,instead it writes the
same table field name as such ... this is what i've tried
<!--inside data grid -->
<asp:HyperLink ID="hlkRecID" onClick='OpenNewWindow("<%# DataBinder.Eval
(Container.DataItem,"Record_Id")%>")' NavigateUrl='<%# "FileName.aspx?
RecID=" + HttpUtility.UrlEncode(DataBinder.Eval
(Container.DataItem,"Record_Id"))%>' text="Click"
Runat="server"></asp:HyperLink>
and here is my javascript
function OpenTenderNW(sPage)
{
newwind = window.open("FileName.aspx?RecID=" +
sPage,"",'top=200,left=400,toolbars=no,location=no,scrollbars=yes,width=575
,height=350');
return false;
}
thanks in advance...
samuel