M
mg
I have a WebForm with C# and JavaScript functions -
The aspx file holds two buttons: Button1 and Button2
In Page_Load (code behind), I have Button2.Attributes.Add
("onclick", "func()");
My program works if I first press Button1 with the mouse
and then press Button2 with the mouse.
I'd like to run the same program by physically pressing
only Button1.
I'd like the code in the event handler of Button1 to run
first, then have the (programatic) pressing of Button2
cause the JavaScript function func() to run as a result
of the Button2 "onclick" event.
The aspx file holds two buttons: Button1 and Button2
In Page_Load (code behind), I have Button2.Attributes.Add
("onclick", "func()");
My program works if I first press Button1 with the mouse
and then press Button2 with the mouse.
I'd like to run the same program by physically pressing
only Button1.
I'd like the code in the event handler of Button1 to run
first, then have the (programatic) pressing of Button2
cause the JavaScript function func() to run as a result
of the Button2 "onclick" event.