 | |  | |  | |  | |  |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | | .NET 2.0 IButtonControl New |
|
|  | |  | |  | |  | |  | |  | |  | |
| |
| DefaultButton property of HtmlForm
|
Example code
private void button_Clicked(object sender, EventArgs e){
OboutInc.OboutSuperButton.SuperButton button =(OboutInc.OboutSuperButton.SuperButton)sender;
label.Text= button.Text + "<span style='color:black'>'s Click event fired</span>";
button.Title= "Once submitted"; // Change button's title after button was clicked
}
...
<!-- Control with ID SubmitButton causes postback when the 'ENTER' key is pressed in Form. -->
<Form ID="Form1" DefaultButton="SubmitButton" Runat="server"> ... <osb:SuperButton id="SubmitButton" OnClick="button_Clicked" ... /> <osb:SuperButton id="CancelButton" OnClick="button_Clicked" ... /> ... </Form>
| | |
Press 'ENTER' in any textbox of the Form:
| | |
| "I was astounded by how easy and stylish your products were." |
Kevin Klika |
|
| | |
|
|
|
|