I have the following code:
onclick='window.open(" *** ","List","scrollbars=no,resizable=no,width=400,height=280");'
I want to replace the *** with this:
<%# "~/pages/AttchmentViewer.aspx?ID=" + Eval("ID").ToString() %>
but I have problems with the result with the quotation marks:
<a runat="server" id="DocTitleLabel"
onclick='window.open(\"<%# "~/pages/AttchmentViewer.aspx?ID=" +
Eval("ID").ToString() %>" \", "List", "scrollbars=no,resizable=no,width=400,height=280");'>
<%# Eval("DocTitle") %>
</a>
Any help!!!
Thanks in advance.
This should work (tested), but as I told you the ~ must be omitted you just need to give relative path,
onclick='<%# “window.open(\”~/pages/AttchmentViewer.aspx?ID=” + Eval(“Id”).ToString() + “\”, \”List\”,\”scrollbars=no,resizable=no,width=400,height=280\”);” %>’