since you can't use javascript with asp.net, how do I close a window in asp.net?Yes you can use Javascript. In fact, ASP.NET itself writes *lots* of Javascript that it send to the browser.Who said you can't use javascript with asp.net?<BR><BR>Of course you can, just add a simple HTML Control or Intrinsic Control on your .aspx page with an "onclick" attribute invoking a javascript client side function.<BR><BR>If you want, you can even use an HTML Server Control that invokes a client side event handler, for example:<BR><BR><input type="button" id="btnButton" onClick="MyJavascriptFunction()" runat="server"/><BR><BR>When using HTML Server Controls, you can invoke a client side scripting function OR a server side function but you can use both. When using the "onClick" attribute you *MUST* use client side scripting otherwise use the "onServerClick" attributes which will call a server side function. Either, remember that when using HTML Server Controls you must have an *id* and *runat* attribute.<BR><BR>Hope this helps!<BR>Sincerely<BR>Vlince-->When using HTML Server Controls, you can invoke a client side scripting function OR a server side function but you can use both.<--<BR><BR>Should read :<BR><BR>When using HTML Server Controls, you can invoke a client side scripting function OR a server side function but you CAN'T use both.