First: btn_export.attributes.add ("onclick", "javascript: showmodaldialog ('listprintselect. aspx ', parent, 'dialogwidth: 300px; dialogheight: 130px; center: Yes; help: No; resizable: No; Status: no ');
Call window. dialogarguments. Location. Reload ()
If a framework exists, window. dialogarguments. frameid. Location. Reload () will be ready.
Type 2: btn_export.attributes.add ("ondblclick", "javascript: var sret; sret = showmodaldialog ('shippercontent. aspx? Id = "+ Itemid +" & rdid = "+ rdid +" ', parent, 'dialogwidth: 640px; dialogheight: 500px; center: Yes; help: No; resizable: No; status: no ');
If the returned value is "AA", refresh if (sret = 'A ')
{Window. Location. Reload ();}
In the mode window, call page. registerstartupscript ("", "<script language = 'javascript '> window. returnvalue = 'aa'; window. Close ();
Pass a returned value "AA" to the parent form