 | |  | |  | |  | |  |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | | .NET 2.0-3.5 IButtonControl New |
|
|  | |  | |  | |  | |  | |  | |  | |
| |
| Inside MS AJAX UpdatePanel
|
| | |
Click any of the buttons:
| | |
Example code
<%@ Register TagPrefix="osb" Namespace="OboutInc.OboutSuperButton" Assembly="obout_SuperButton"%>
<%@ Register TagPrefix="msajax" Namespace="System.Web.UI" Assembly="System.Web.Extensions"%>
...
private void button_Clicked(object sender, EventArgs e){
OboutInc.OboutSuperButton.SuperButton button =(OboutInc.OboutSuperButton.SuperButton)sender;
label.Text= button.Text + " <span style='color:black'>clicked</span>";
button.SkinStyle=(button.SkinStyle=="amazon")?"style1":"amazon"; // Change button's SkinStyle
}
private void anotherButton_Clicked(object sender, EventArgs e) {
label.Text = "another submit button <span style='color:black'>clicked</span>";
}
...
<msajax:UpdatePanel runat="server"><ContentTemplate>
<osb:SuperButton Text="Submit_1" SkinStyle="amazon" isSubmit="true" OnClick="button_Clicked" ... />
<osb:SuperButton Text="Submit_2" SkinStyle="style1" isSubmit="true" OnClick="button_Clicked" ... /><br/>
<asp:Button Text="another submit button" OnClick="anotherButton_Clicked" ... />
...
<asp:Label runat="server" id="label" Text=""/>
</ContentTemplate></msajax:UpdatePanel>
| | |
| "Superb support and great component suite!" |
Anton Beerens |
|
| | |
|
|
|
|