Issue opening .aspx page in a new window from inside an ajax modal popup
<p>I am trying to open an preview.aspx page in a seperate window from INSIDE an ajax modal popup.
I have tried doing it with client side scripting using the onClientCLick preview.target _blank etc but this doesn't work at all.
I have now managed to at least get this working within my lbPreview_Click routine but this requires a 2nd click because i am using the Attributes.Add to open window (the only way it would work so far!):</p>

<pre><code>protected void lbPreview_Click(object sender, EventArgs e)
{
    string recordNo = lblRecordNo.Text;
    string details = txtQuery.Text;
    string reason = ddReason.SelectedItem.Text;
    string fullName = lblFullName.Text;
    string path = "emailPreview.aspx?recordNo=" + recordNo + "&amp;details=" + details + "&amp;reason=" + ddReason.SelectedItem.Text + "&amp;fullName=" + fullName + "";
    lbPreview.Attributes.Add("onClick", "window.open('" + path + "');");
}
</code></pre>

<p>PLease note: I don't have the values to build my url path until the button has been clicked, so calling the details on page load or similar won't work either.</p>

<p>Any suggestions/help would be very much appreciated.</p>

<p>Kind Regards,
ukjezza.</p>
