title: Unable to call Javascript from Codebehind
body: <p>I know my issue is very common and similar types has been asked many times over here, but my problem is somewhat different. I am working on ASP.Net 4.0 web application where on my required page i have ajax toolkit 4 calendar control, toolkitscript manager and few asp controls. Now from that pop up i am doing a save operation on button click. What i want is to close popup window after successful save. Problem is not in saving but after saving , automatically closing the popup screen. I have tried the following ways:</p>
  
  <ol>
  <li>RegisterStartUpScriptBlock(this.GetType,"closeForm","return window.close();") and all other required params</li>
  <li>ClientScript.RegisterStartUpScript()--- alongwith params and with both return window.close(); and window.close() also with self.close();</li>
  <li>Also i have  under the title tag...</li>
  </ol>
  
  <p>I think i have tried all the ways , i can. I feel i am lost. Please help me out....</p>