 | |  | |  | |  | |  |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | |  | | .NET 2.0-3.5 IButtonControl New |
|
|  | |  | |  | |  | |  | |  | |  | |
| |
| Outside 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>";
}
private void anotherButton_Clicked(object sender, EventArgs e) {
label.Text = "another submit button <span style='color:black'>clicked</span>";
}
...
<osb:SuperButton Text="Submit_1" SkinStyle="amazon" isSubmit="true" OnClick="button_Clicked" ... />
<osb:SuperButton Text="Submit_2" SkinStyle="amazon" isSubmit="true" OnClick="button_Clicked" ... /><br/>
<msajax:UpdatePanel runat="server"><ContentTemplate>
<asp:Button Text="another submit button" OnClick="anotherButton_Clicked" ... />
<asp:Label runat="server" id="label" Text=""/>
</ContentTemplate></msajax:UpdatePanel>
| | |
| "You really do have an outstanding support at Obout, which I like very much." |
Rick Langevoort |
|
| | |
|
|
|
|