I’ve been trying this for 2 days.
In ASP.NET and VB.NET I’ve page1.aspx and page2.aspx
I would like when I press button1 in page1.aspx to trigger button1.click event and open a page2.aspx in a new window and send to it data.
All this can easly be done if no new window, by Server.Transfer or Response.Redirect.
But unfortunatly they don’t have an option to open a new window.
Thanks,
Ahmed.
— Updae —
I’ve used this solution but can’t send the parameters and it opens me page 0 !!
<asp:Button ID="Add" runat="server" Text="Add" OnClientClick ="return pageOpen(TextBox1.SelectedValue, TextBox2.SelectedValue);"/>
and the javascript is:
<script type="text/javascript">
function pageOpen()
{
window.open("page2.aspx?param1=" & arguments[0] & "¶m2=" & arguments[1])
}
</script>
This should work…