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:
- RegisterStartUpScriptBlock(this.GetType,”closeForm”,”return window.close();”) and all other required params
- ClientScript.RegisterStartUpScript()— alongwith params and with both return window.close(); and window.close() also with self.close();
- Also i have under the title tag…
I think i have tried all the ways , i can. I feel i am lost. Please help me out….
if your using a script manager on the page…
first create a function to close the calendar in js in your html…
then on the codebehind use this to call that js function