close current web form in asp.net
<p>How i can close current web form in web based application?
I have tried with following code:</p>

<pre><code>mybutton.Attributes.Add("onclick","window.close()")
</code></pre>

<p>But its not working
Help me. Thank you.</p>
