RE: programmaticaly invoke the button onclick method InvokeOnClick no



Hi Cindy,

Thank you for posting.

From your description, the problem you mentioned is within an ASP.NET web
application. And the page that contains the button will use some
client-side script to invoke the button's click operation, correct?

Based on my understanding , for client-side script, we can use
"document.getElementById(buttonid).click();" to invoke the certain button
element's click event. And as for server-side code, since the button's
click event handler is just a normal function, you can just call it in your
certain function. What I'm not quite sure so far is the

"found another thread that say use this.InvokeOnClick(button1,
EventArgs.Empty); "

you mentioned, is it also specific to ASP.NET application or winform?

Please feel free to post here if there is anything I didn't quite get.

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.)

.


Loading