Button & Lable Controls



Button control :-

Button control is used to perform the required operations when used to click on it

properties with button control

1.     Command Argument
2.     CommandName
3.     OnclientClick  
4.     PostBackUrl

CommandArgument:
  • This property is used to send the required data to the server when user clicks on button
  • The data type command arguments is object type
CommandName:
  • This property is used to indentified from which control event has been raised if same function or event is called from multiple controls
OnClientClick:
  • This property is used to execute javascript function when user clicks on Button
PostBackUrl
  • This property is used to redirect the user request when user clicks on Button to other website or other webpage
Events associated with Button Control:
1.     Click event
2.     Command Event

Click Event:
  • This event will be fired when user clicks on a button
  • This event doesn’t support command name & command argument property
Command Event:
  • This event is fired when user clicks on button control
  • This event will support command name & command argument properties
Definition of Event:
  • An event is similar to a function used to perform the require operation
  • In general it is not required to call any event
  • Event will call automatically when it performs an action which is known as event firing or event raising
Label Control:
  • This Control is used to give the description about the other Controls and used to display the data to the user dynamically

No comments:

Post a Comment