News

I've got a C# form that is going to be displayed as a Modal Dialog from another form. In the event handler for the "OK" button, I validate the other controls on the form, and do some work.In the ...
The Attributes.Add method shown on the last line adds an "onClick" event to the button named "Button1." This causes the button to execute the JavaScript code defined in the textHTML variable.