Nov 26, 2012, 3:30 AM
Response.Write()
Hi, so this is my problem
I have a ext:buttom .. and when the buttom is clicked .. I want to open a new window with a page .. but I didnt success .. "Status Code: 200 Status Text:BADRESPONSE: Unexpected token <" , it only works if I use "Response.Redirect" but I need open a nw window, I tried with asp:buttom and it works .. I dont know why ? .. so
Hopefully you can help me cause I really dont know what is wrong
I have a ext:buttom .. and when the buttom is clicked .. I want to open a new window with a page .. but I didnt success .. "Status Code: 200 Status Text:BADRESPONSE: Unexpected token <" , it only works if I use "Response.Redirect" but I need open a nw window, I tried with asp:buttom and it works .. I dont know why ? .. so
Hopefully you can help me cause I really dont know what is wrong
<ext:Button ID="Button1" runat="server" Text="Submit">
<DirectEvents>
<Click OnEvent="show">
</Click>
</DirectEvents>
</ext:Button>
protected void show(object sender, DirectEventArgs e)
{
//Response.Redirect("http://www.google.com/");
Response.Write("<script>window.open('http://www.google.com/','_blank');</script>");
Response.End();
}