Hi, Max,
You can add client-side script to the page that will call Button2.Click() or
call directly the VBScript function that handles the click. Use the
RegisterClientScriptBlock or RegisterStartupScript methods on the Page
class.
The only way to call a client-side function is to add client-side code to do
this.
Hope this helps
Martin
Max said:
Thanks Martin,
What I am trying to do is
When user clicks Button1 then some attributes are added to Button2 which
then should invoke VB Script function.
I need all this done by just clicking Button1. I have this webform where
user can search adequate conference rooms for the particular meeting. When
user completes filling criterias in form, the code I wrote searches adequate
conferense roomss' names in SQL Server and then those conference rooms and
criterias are passed to my VB Script as parameters. The VB script then adds
adequate conference rooms as resources in Outlook. So I need Button1 to Add
script attributes to Button2 (Because I am using parameters in VB script)
and then Button2 should run VB script. I tried to call Button2's Click
method (Button2_Click(null, null)), but id did not run the VB script, so
user needs to actually click Button2 also, which is bad. Can I somehow work
around this?