RE: programmaticaly invoke the button onclick method InvokeOnClic

Tech-Archive recommends: Fix windows errors by optimizing your registry



Unfortunately you are only validating the flow not giving any example of how
to invoke the CmdClose onclick method programmatically. I have registered see
the code some client script to close the form. I have tied that script to
CmdClose button if I manually click the button the modal will close. The
code I have in the CmdUpload button works great, the form data gets uploaded.
Please help me now with the next part. How do I invoke the CmdClose button
onClick method after completion of the upload, for example
cmdUpload onClick()
{
//data uploaded
// how do I force
cmdClose.CLICK(); //?????????????????????????????????????????/
}
--
cindy


"Steven Cheng[MSFT]" wrote:

Thanks for the response cindy,

IMO, for such scenario, the main flow of the dialog and opener page should
be as below:

In Model dialog page, the user upload the file and then the page register
some client-script and postback, in the script, if necessary, we can use
script to invoke another button's postback event(then do some additional
work at server-side). After that, still register some script to
programmatically close the model dialog itself.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)









.


Quantcast