i want to close the webform in asp for that i write this code....in close button click
Expand|Select|Wrap|Line Numbers
- protected void Button6_Click(object sender, EventArgs e)
- {
- Response.Write("<script language='javascript'>window.open('','_self',''); window.close();</script>");
- }
then i got this error.....
Error: Sys.WebForms.PageRequestManagerParserErrorExceptio n: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '<script language='ja'.
please anyone help me......
i am new to asp.net....
please clear my error.....
Thanks in advance......