Thanks,
Ahmed.
-- Updae --
I've used this solution but can't send the parameters and it opens me page 0 !! <asp:But开发者_开发问答ton 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>
function openWindow() {
window.open('Page2.aspx?Arg1=' + document.getElementById('<%= txt1.ClientID %>').value + '&Arg2=' + document.getElementById('<%= txt2.ClientID %>').value, 'Title');
}
<asp:TextBox ID="txt1" runat="server" />
<asp:TextBox ID="txt2" runat="server" />
<asp:Button ID="btn" Text="Add" OnClientClick="openWindow()" runat="server" />
This should work...
You need to call window.open
in Javascript with the data in the querystring.
精彩评论