Thursday 26 July 2012

Basic Controls - Button Controls | Properties - ASP .NET

ASP.NET - Basic Controls:


Button Controls:

The Button control is a commonly used rectangular button. Button controls look like they can be pressed, and have a text label, an icon, or both on their face. You can optionally specify graphic skins for each of several Button states.
You can create a normal Button control or a toggle Button control. A normal Button control stays in its pressed state for as long as the mouse button is down after you select it. A toggle Button controls stays in the pressed state until you select it a second time.

Properties:

CausesValidation :Specifies if a page is validated when a button is clicked 1.0 CommandArgument Specifies additional information about the command to perform 1.0 CommandName Specifies the command associated with the Command event 1.0
  
OnClientClick :  Specifies the name of the function to be executed when a button is clicked 2.0

PostBackUrl :Specifies the URL of the page to post to from the current page when a button is clicked 2.0  

runat : Specifies that the control is a server control.  Must be set to "server" 1.0

Text  : Specifies the text on a button 1.0

UseSubmitBehavior :Specifies whether or not a button uses the browser's submit mechanism or the ASP.NET postback mechanism 2.0

ValidationGroup :Specifies the group of controls a button causes validation, when it posts back to the server

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More