STANDARD CONTROLS
Session objectives <ul><li>ASP.NET Controls </li></ul><ul><li>What’s in the Toolbox </li></ul><ul><li>Web forms vs HTML Co...
ASP.NET Controls <ul><li>WebForm Controls </li></ul><ul><li>HTML Controls </li></ul><ul><li>Web User Controls </li></ul><u...
What’s in the Toolbox? <ul><li>WebForm Controls </li></ul><ul><ul><li>-TextBox, Label, Hyperlink, Etc </li></ul></ul><ul><...
WebForm Vs HTML Controls <ul><li>Both have the following benefits </li></ul><ul><ul><li>An object model that you can progr...
STANDARD CONTROLS IN ASP.NET <ul><li>Button  </li></ul><ul><li>CheckBox  </li></ul><ul><li>CheckBoxList  </li></ul><ul><li...
Properties & Event of Standard Control <ul><li>Button - OnClick event to determine the particular Button that was clicked ...
<ul><li>CheckBoxList -CheckBoxList has an Items collection with members that  correspond to each item in the list. To dete...
<ul><li>DropDownList -The value of the currently Selected item is exposed through the SelectedValue property of DropDownLi...
<ul><li>ImageMap -Click event also supplies the x/y coordinates of where the user  clicked the image. This provides a mean...
Properties & Event of Standard Control <ul><li>ListBox -The ListBox control provides a single-selection or multiple-select...
Properties & Event of Standard Control <ul><li>HyperLink -The HyperLink control supports data binding to its Text and Navi...
<ul><li>LinkButton -Like the Button control, LinkButton is used to post a Web forms  page back to the server </li></ul><ul...
Session Summary <ul><li>ASP.NET Controls </li></ul><ul><li>What’s in the Toolbox </li></ul><ul><li>Web forms vs HTML Contr...
Upcoming SlideShare
Loading in …5
×

ASP.NET Tutorial - Presentation 5

2,647 views

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,647
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

ASP.NET Tutorial - Presentation 5

  1. 1. STANDARD CONTROLS
  2. 2. Session objectives <ul><li>ASP.NET Controls </li></ul><ul><li>What’s in the Toolbox </li></ul><ul><li>Web forms vs HTML Controls </li></ul><ul><li>Standard Controls in ASP.NET </li></ul><ul><li>Properties & Event of Standard Control </li></ul>http:// www.guyfromchennai.com Kumar S
  3. 3. ASP.NET Controls <ul><li>WebForm Controls </li></ul><ul><li>HTML Controls </li></ul><ul><li>Web User Controls </li></ul><ul><li>Custom Controls </li></ul>http:// www.guyfromchennai.com Kumar S
  4. 4. What’s in the Toolbox? <ul><li>WebForm Controls </li></ul><ul><ul><li>-TextBox, Label, Hyperlink, Etc </li></ul></ul><ul><ul><li>-DropDownList, DataGrid, DataList, Etc </li></ul></ul><ul><li>HTML Controls (Client or Server) </li></ul><ul><li>ADO.NET Design Controls </li></ul><ul><li>System Components </li></ul><ul><li>Validation Controls </li></ul>http:// www.guyfromchennai.com Kumar S
  5. 5. WebForm Vs HTML Controls <ul><li>Both have the following benefits </li></ul><ul><ul><li>An object model that you can program against on the server </li></ul></ul><ul><ul><li>A set of events for which you can write sever side event handlers </li></ul></ul><ul><ul><li>The ability to handle events in client script </li></ul></ul><ul><ul><li>Interaction with validation controls so you can easily verify that a user has entered appropriate information into a control </li></ul></ul><ul><ul><li>Data binding to one or more properties of the control </li></ul></ul><ul><ul><li>Support for HTML 4.0 styles if the Web Forms page is displayed in a browser that supports cascading style sheets Pass-through of custom attributes </li></ul></ul>http:// www.guyfromchennai.com Kumar S
  6. 6. STANDARD CONTROLS IN ASP.NET <ul><li>Button </li></ul><ul><li>CheckBox </li></ul><ul><li>CheckBoxList </li></ul><ul><li>DropDownList </li></ul><ul><li>HyperLink </li></ul><ul><li>Image </li></ul><ul><li>ImageButton </li></ul><ul><li>ImageMap </li></ul><ul><li>Label </li></ul><ul><li>LinkButton </li></ul><ul><li>ListBox </li></ul><ul><li>TextBox </li></ul>http:// www.guyfromchennai.com Kumar S
  7. 7. Properties & Event of Standard Control <ul><li>Button - OnClick event to determine the particular Button that was clicked </li></ul><ul><li>CheckBox - CheckBox server control accepts Boolean (true or false) input. When selected, its Checked property is true -CheckedChanged is the event </li></ul>http:// www.guyfromchennai.com Kumar S
  8. 8. <ul><li>CheckBoxList -CheckBoxList has an Items collection with members that correspond to each item in the list. To determine which items are selected, test the Selected property of each item - SelectedIndexChanged is the Event </li></ul>Properties & Event of Standard Control http:// www.guyfromchennai.com Kumar S
  9. 9. <ul><li>DropDownList -The value of the currently Selected item is exposed through the SelectedValue property of DropDownList -SelectedIndexChanged is the Event </li></ul><ul><li>ImageButton - Like the Button control, ImageButton is used to post back to the server with ImageUrl Property </li></ul>Properties & Event of Standard Control http:// www.guyfromchennai.com Kumar S
  10. 10. <ul><li>ImageMap -Click event also supplies the x/y coordinates of where the user clicked the image. This provides a means to respond differently depending on what part of the image is clicked. </li></ul><ul><li>TextBox -TextBox control enables the user to enter text in Text property </li></ul>Properties & Event of Standard Control http:// www.guyfromchennai.com Kumar S
  11. 11. Properties & Event of Standard Control <ul><li>ListBox -The ListBox control provides a single-selection or multiple-selection list. To enable multiple selection, set the SelectionMode property to Multiple -SelectedIndexChanged is the Event </li></ul>http:// www.guyfromchennai.com Kumar S
  12. 12. Properties & Event of Standard Control <ul><li>HyperLink -The HyperLink control supports data binding to its Text and NavigateUrl properties </li></ul><ul><li>Label -Displays text in a set location on the page using Text property </li></ul>http:// www.guyfromchennai.com Kumar S
  13. 13. <ul><li>LinkButton -Like the Button control, LinkButton is used to post a Web forms page back to the server </li></ul><ul><li>Image -The Image control displays the image defined by its ImageUrl property. </li></ul>Properties & Event of Standard Control http:// www.guyfromchennai.com Kumar S
  14. 14. Session Summary <ul><li>ASP.NET Controls </li></ul><ul><li>What’s in the Toolbox </li></ul><ul><li>Web forms vs HTML Controls </li></ul><ul><li>Standard Controls in ASP.NET </li></ul><ul><li>Properties & Event of Standard Control </li></ul>http:// www.guyfromchennai.com Kumar S

×