Button is rectangular in shape. Button Control in ASP.NET allow user to send a command. When the user click on Button the Button click event is fired and perform the operation
Example :
<%@ Page Title="" Language="C#" MasterPageFile="~/RoseindiaMaster.master"
AutoEventWireup="true" CodeFile="Button.aspx.cs" Inherits="Button" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<div>
<h2 style="color:Green">Button in ASP.NET 4 , C#</h2>
<asp:Button ID="button1"runat="server"Text="Submit"
CommandName="SubmitButtonCommand"
OnCommand="Button_Command"/>
<br />
<br />
<asp:Button ID="button2"
runat="server" Text="Cancle"
CommandName="CancelButtonCommand"
OnCommand="Button_Command"/>
<br />
<br />
<asp:Label ID="label1" runat="server" Font-Bold="True" ForeColor="#000099" />
</div>
</asp:Content>
AutoEventWireup="true" CodeFile="Button.aspx.cs" Inherits="Button" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<div>
<h2 style="color:Green">Button in ASP.NET 4 , C#</h2>
<asp:Button ID="button1"runat="server"Text="Submit"
CommandName="SubmitButtonCommand"
OnCommand="Button_Command"/>
<br />
<br />
<asp:Button ID="button2"
runat="server" Text="Cancle"
CommandName="CancelButtonCommand"
OnCommand="Button_Command"/>
<br />
<br />
<asp:Label ID="label1" runat="server" Font-Bold="True" ForeColor="#000099" />
</div>
</asp:Content>
No comments:
Post a Comment