RE: programmaticaly invoke the button onclick method InvokeOnClick no
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Tue, 25 Apr 2006 06:40:07 GMT
Hi Cindy,
Thank you for posting.
From your description, the problem you mentioned is within an ASP.NET webapplication. 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.)
.
- Follow-Ups:
- Prev by Date: Need to write an HTTP server , can i use a webservice with "NOSOAP"?
- Next by Date: RE: ReplacementStrings on EventLog entries Messages
- Previous by thread: Need to write an HTTP server , can i use a webservice with "NOSOAP"?
- Next by thread: RE: programmaticaly invoke the button onclick method InvokeOnClic
- Index(es):
Loading