SlideShare una empresa de Scribd logo
1 de 43
Chapter 3 Working with the Standard Web Server Controls
Overview ,[object Object]
Introducing Server Controls ,[object Object],[object Object],[object Object]
Introducing Server Controls ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
HTML Server Controls ,[object Object],[object Object],[object Object]
HTML Server Controls ,[object Object],[object Object],[object Object],[object Object]
Web Server Controls ,[object Object],<asp:Button ID=&quot;myButton&quot; runat=&quot;server&quot; />
Web Server Controls ,[object Object],[object Object],[object Object]
Validation Controls ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
User Controls ,[object Object],[object Object],[object Object]
Custom Server Controls ,[object Object],[object Object],[object Object]
Web Server Control Overview ,[object Object],[object Object],[object Object],[object Object]
Web Server Control Syntax ,[object Object],[object Object]
List of the Common Web Server Controls Displays a drop-down list for selecting a value from a list of values.  DropDownList  Displays a multiselection check box group.  CheckBoxList  Displays a check box for selected true or false values.  CheckBox  Displays a month calendar from which the user can select dates.  Calendar  Displays a push button that posts a Web form page back to the server.  Button Displays a bulleted list of items.  BulletedList
List of the Common Web Server Controls Displays static content that can be set programmatically and whose content can be styled.  Label  Displays an image with predefined hot spot regions that post back to the server or navigate to a different page.  ImageMap  Displays an image that posts the form back to the server  ImageButton  Displays an image. Image  Displays a hyperlink that when clicked requests a different page.  HyperLink  Stores a nondisplayed value in a form that needs to be persisted across posts.  HiddenField
List of the Common Web Server Controls Creates a text box form element.  TextBox Creates an HTML table; principally used for programmatically constructing a table.  Table  Creates a group of radio button form elements.  RadioButtonList  Creates a radio button form element.  RadioButton  Like the Label, displays static content that is programmable. Unlike the Label control, it does not let you apply styles to its content.  Literal  Displays a hyperlink that when clicked requests a different page. Creates a single- or multiselection list.  ListBox  Creates a hyperlink-style button that posts the form back to the server.  LinkButton
Common Members ,[object Object],[object Object]
Object Model
Common Members ,[object Object],[object Object],[object Object],[object Object]
Some Properties of the  WebControl  Class The width of the control. Width The tool tip text (i.e., the text that appears when the mouse rests over control) for the control.  ToolTip Font information for the control. This property contains  subproperties .  Font  The CSS class name assigned to the control.  CssClass  The thickness (in pixels) of the control’s border.  BorderWidth The background color (either standard HTML color identifier or the name of the color) of the control.  BackColor
Some Properties of the  Control  Class Specifies whether the control is visible. Visible The unique identifier for the control .  Id
Subproperties ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Manipulating Properties Programmatically ,[object Object],[object Object],[object Object],[object Object],// Using a primitive myLabel.Text = &quot;Randy&quot;; string abc = myTextBox.Text; myLabel.Visible = false; // Using an enumeration myBulletedList.BulletStyle = BulletStyle.Circle; TextBoxMode mode = myTextBox.TextMode;
Event Properties ,[object Object],[object Object],[object Object],<asp:button id=&quot;btnOne&quot; runat=&quot;server&quot;  OnClick=&quot;btnOne_Click&quot;  />
Event Methods ,[object Object],[object Object],[object Object],[object Object],public void btnOne_Click(object source, EventArgs e) { // code goes here }
Unit-Based Measurement Properties ,[object Object],[object Object],[object Object]
Color-Based Properties  ,[object Object],[object Object],[object Object],[object Object],[object Object]
Collection Properties ,[object Object],[object Object],[object Object],[object Object],DropDownList drpSample = new DropDownList(); // Create the item, then add to collection ListItem li = new ListItem(&quot;Item 2&quot;); drpSample.Items.Add(li); // Combine the creation and addition to collection steps drpSample.Items.Add(new ListItem(&quot;Item 1&quot;));
Additional Control Attributes ,[object Object],[object Object],[object Object],myButton.Attributes[&quot;onmouseout&quot;] = &quot;document.bgColor='green';&quot;; myButton.Attributes[&quot;onmouseover&quot;] = &quot;document.bgColor='blue';&quot;; <input type=&quot;submit&quot; name=&quot;myButton&quot; value=&quot;Click Me&quot; id=&quot;myButton&quot;  onmouseout=&quot;document.bgColor='green';&quot;  onmouseover=&quot;document.bgColor='blue';&quot; /> rendered as
Essential Controls ,[object Object]
Literal vs Label Control Label  controls are (by default) rendered in the browser as static text within an HTML  <span>  element, e.g., <asp:Label id=&quot;labMsg&quot; runat=&quot;server&quot; text=&quot;hello&quot;/> will be rendered as <span id=&quot;labMsg&quot;>hello</span> The  Literal  control does not add any HTML elements to the text , e.g., <asp:Literal id=&quot;litMsg&quot; runat=&quot;server&quot; text=&quot;hello&quot;/> will be rendered as hello
asp:label as HTML <label> ,[object Object],[object Object]
asp:label as HTML <label> <asp:Label ID=&quot;labName&quot; runat=&quot;server&quot;  AccessKey=&quot;N&quot;  AssociatedControlID=&quot;txtName&quot;  Text=&quot;<u>N</u>ame&quot;  /> <asp:TextBox ID=&quot; txtName &quot; runat=&quot;server&quot; /> <label for=&quot;txtName&quot; id=&quot;labName&quot; AccessKey=&quot;N&quot; > <u>N</u>ame </label> <input type=&quot;text&quot; id=&quot;txtName&quot; /> rendered as
TextBox TextMode=&quot;MultiLine&quot;  TextMode=&quot;Password&quot;  MaxLength=&quot;2&quot;
Button-Style Controls Button LinkButton ImageButton
Button-Style Controls ,[object Object],[object Object],[object Object],[object Object],[object Object]
List-Style Controls
Key Properties of ListControl The value of the list item that was selected SelectedValue The list item that was selected.  SelectedItem The index (starting with 0) of the selected list item(s).  SelectedIndex The  collection of  ListItems  in the control. Items Specifies the field name of the data source that will provide the value for each list item. DataValueField Specifies the formatting string that controls the visual display of the list content.  DataTextFormatString   Specifies the field name of the data source that will provide the textual content for the list.  DataTextField
HyperLink vs LinkButton ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Table Control ,[object Object],[object Object],[object Object]
Table Control ,[object Object],[object Object]
Calendar Control ,[object Object],[object Object]
Style Elements ,[object Object],[object Object],[object Object],<asp:calendar id=&quot;calTest&quot; runat=&quot;server&quot;> <titlestyle font-size=&quot;14px&quot; font-bold=&quot;true&quot; /> </asp:calendar>

Más contenido relacionado

La actualidad más candente (20)

Controls in asp.net
Controls in asp.netControls in asp.net
Controls in asp.net
 
Data controls ppt
Data controls pptData controls ppt
Data controls ppt
 
Controls in asp.net
Controls in asp.netControls in asp.net
Controls in asp.net
 
Ajax and ASP.NET AJAX
Ajax and ASP.NET AJAXAjax and ASP.NET AJAX
Ajax and ASP.NET AJAX
 
Ch 04 asp.net application
Ch 04 asp.net application Ch 04 asp.net application
Ch 04 asp.net application
 
Ajax control tool kit
Ajax control tool kitAjax control tool kit
Ajax control tool kit
 
ASP.Net Presentation Part1
ASP.Net Presentation Part1ASP.Net Presentation Part1
ASP.Net Presentation Part1
 
Asp PPT (.NET )
Asp PPT (.NET )Asp PPT (.NET )
Asp PPT (.NET )
 
Presentation on asp.net controls
Presentation on asp.net controlsPresentation on asp.net controls
Presentation on asp.net controls
 
Ch3 server controls
Ch3 server controlsCh3 server controls
Ch3 server controls
 
Standard control in asp.net
Standard control in asp.netStandard control in asp.net
Standard control in asp.net
 
Asp.net html server control
Asp.net html  server controlAsp.net html  server control
Asp.net html server control
 
Introduction To Asp.Net Ajax
Introduction To Asp.Net AjaxIntroduction To Asp.Net Ajax
Introduction To Asp.Net Ajax
 
Ajax control asp.net
Ajax control asp.netAjax control asp.net
Ajax control asp.net
 
Programming web application
Programming web applicationProgramming web application
Programming web application
 
RichControl in Asp.net
RichControl in Asp.netRichControl in Asp.net
RichControl in Asp.net
 
Asp objects
Asp objectsAsp objects
Asp objects
 
Csphtp1 20
Csphtp1 20Csphtp1 20
Csphtp1 20
 
Asp
AspAsp
Asp
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentals
 

Similar a ASP.NET 03 - Working With Web Server Controls

Similar a ASP.NET 03 - Working With Web Server Controls (20)

Chapter 6
Chapter 6Chapter 6
Chapter 6
 
ASP.NET Session 9
ASP.NET Session 9ASP.NET Session 9
ASP.NET Session 9
 
ASP.NET 04 - Additional Web Server Controls
ASP.NET 04 - Additional Web Server ControlsASP.NET 04 - Additional Web Server Controls
ASP.NET 04 - Additional Web Server Controls
 
Overview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company indiaOverview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company india
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
Web(chap2)
Web(chap2)Web(chap2)
Web(chap2)
 
WPF Controls
WPF ControlsWPF Controls
WPF Controls
 
Java script ppt from students in internet technology
Java script ppt from students in internet technologyJava script ppt from students in internet technology
Java script ppt from students in internet technology
 
Android interface elements and controls-chapter8
Android interface elements and controls-chapter8Android interface elements and controls-chapter8
Android interface elements and controls-chapter8
 
331592291-HTML-and-Cascading style sheet
331592291-HTML-and-Cascading style sheet331592291-HTML-and-Cascading style sheet
331592291-HTML-and-Cascading style sheet
 
Xhtml Part2
Xhtml Part2Xhtml Part2
Xhtml Part2
 
Html Form Controls
Html Form ControlsHtml Form Controls
Html Form Controls
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
 
CSS_Forms.pdf
CSS_Forms.pdfCSS_Forms.pdf
CSS_Forms.pdf
 
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
 
Controls
ControlsControls
Controls
 
AdRotator and AdRepeater Control in Asp.Net for Msc CS
AdRotator and AdRepeater Control in Asp.Net for Msc CSAdRotator and AdRepeater Control in Asp.Net for Msc CS
AdRotator and AdRepeater Control in Asp.Net for Msc CS
 
Html forms
Html formsHtml forms
Html forms
 
JavaScript
JavaScriptJavaScript
JavaScript
 
Chapter09
Chapter09Chapter09
Chapter09
 

Más de Randy Connolly

Celebrating the Release of Computing Careers and Disciplines
Celebrating the Release of Computing Careers and DisciplinesCelebrating the Release of Computing Careers and Disciplines
Celebrating the Release of Computing Careers and DisciplinesRandy Connolly
 
Public Computing Intellectuals in the Age of AI Crisis
Public Computing Intellectuals in the Age of AI CrisisPublic Computing Intellectuals in the Age of AI Crisis
Public Computing Intellectuals in the Age of AI CrisisRandy Connolly
 
Why Computing Belongs Within the Social Sciences
Why Computing Belongs Within the Social SciencesWhy Computing Belongs Within the Social Sciences
Why Computing Belongs Within the Social SciencesRandy Connolly
 
Ten-Year Anniversary of our CIS Degree
Ten-Year Anniversary of our CIS DegreeTen-Year Anniversary of our CIS Degree
Ten-Year Anniversary of our CIS DegreeRandy Connolly
 
Careers in Computing (2019 Edition)
Careers in Computing (2019 Edition)Careers in Computing (2019 Edition)
Careers in Computing (2019 Edition)Randy Connolly
 
Facing Backwards While Stumbling Forwards: The Future of Teaching Web Develop...
Facing Backwards While Stumbling Forwards: The Future of Teaching Web Develop...Facing Backwards While Stumbling Forwards: The Future of Teaching Web Develop...
Facing Backwards While Stumbling Forwards: The Future of Teaching Web Develop...Randy Connolly
 
Where is the Internet? (2019 Edition)
Where is the Internet? (2019 Edition)Where is the Internet? (2019 Edition)
Where is the Internet? (2019 Edition)Randy Connolly
 
Modern Web Development (2018)
Modern Web Development (2018)Modern Web Development (2018)
Modern Web Development (2018)Randy Connolly
 
Helping Prospective Students Understand the Computing Disciplines
Helping Prospective Students Understand the Computing DisciplinesHelping Prospective Students Understand the Computing Disciplines
Helping Prospective Students Understand the Computing DisciplinesRandy Connolly
 
Constructing a Web Development Textbook
Constructing a Web Development TextbookConstructing a Web Development Textbook
Constructing a Web Development TextbookRandy Connolly
 
Web Development for Managers
Web Development for ManagersWeb Development for Managers
Web Development for ManagersRandy Connolly
 
Disrupting the Discourse of the "Digital Disruption of _____"
Disrupting the Discourse of the "Digital Disruption of _____"Disrupting the Discourse of the "Digital Disruption of _____"
Disrupting the Discourse of the "Digital Disruption of _____"Randy Connolly
 
17 Ways to Fail Your Courses
17 Ways to Fail Your Courses17 Ways to Fail Your Courses
17 Ways to Fail Your CoursesRandy Connolly
 
Red Fish Blue Fish: Reexamining Student Understanding of the Computing Discip...
Red Fish Blue Fish: Reexamining Student Understanding of the Computing Discip...Red Fish Blue Fish: Reexamining Student Understanding of the Computing Discip...
Red Fish Blue Fish: Reexamining Student Understanding of the Computing Discip...Randy Connolly
 
Constructing and revising a web development textbook
Constructing and revising a web development textbookConstructing and revising a web development textbook
Constructing and revising a web development textbookRandy Connolly
 
Computing is Not a Rock Band: Student Understanding of the Computing Disciplines
Computing is Not a Rock Band: Student Understanding of the Computing DisciplinesComputing is Not a Rock Band: Student Understanding of the Computing Disciplines
Computing is Not a Rock Band: Student Understanding of the Computing DisciplinesRandy Connolly
 
Citizenship: How do leaders in universities think about and experience citize...
Citizenship: How do leaders in universities think about and experience citize...Citizenship: How do leaders in universities think about and experience citize...
Citizenship: How do leaders in universities think about and experience citize...Randy Connolly
 
Thinking About Technology
Thinking About TechnologyThinking About Technology
Thinking About TechnologyRandy Connolly
 
A longitudinal examination of SIGITE conference submission data
A longitudinal examination of SIGITE conference submission dataA longitudinal examination of SIGITE conference submission data
A longitudinal examination of SIGITE conference submission dataRandy Connolly
 

Más de Randy Connolly (20)

Celebrating the Release of Computing Careers and Disciplines
Celebrating the Release of Computing Careers and DisciplinesCelebrating the Release of Computing Careers and Disciplines
Celebrating the Release of Computing Careers and Disciplines
 
Public Computing Intellectuals in the Age of AI Crisis
Public Computing Intellectuals in the Age of AI CrisisPublic Computing Intellectuals in the Age of AI Crisis
Public Computing Intellectuals in the Age of AI Crisis
 
Why Computing Belongs Within the Social Sciences
Why Computing Belongs Within the Social SciencesWhy Computing Belongs Within the Social Sciences
Why Computing Belongs Within the Social Sciences
 
Ten-Year Anniversary of our CIS Degree
Ten-Year Anniversary of our CIS DegreeTen-Year Anniversary of our CIS Degree
Ten-Year Anniversary of our CIS Degree
 
Careers in Computing (2019 Edition)
Careers in Computing (2019 Edition)Careers in Computing (2019 Edition)
Careers in Computing (2019 Edition)
 
Facing Backwards While Stumbling Forwards: The Future of Teaching Web Develop...
Facing Backwards While Stumbling Forwards: The Future of Teaching Web Develop...Facing Backwards While Stumbling Forwards: The Future of Teaching Web Develop...
Facing Backwards While Stumbling Forwards: The Future of Teaching Web Develop...
 
Where is the Internet? (2019 Edition)
Where is the Internet? (2019 Edition)Where is the Internet? (2019 Edition)
Where is the Internet? (2019 Edition)
 
Modern Web Development (2018)
Modern Web Development (2018)Modern Web Development (2018)
Modern Web Development (2018)
 
Helping Prospective Students Understand the Computing Disciplines
Helping Prospective Students Understand the Computing DisciplinesHelping Prospective Students Understand the Computing Disciplines
Helping Prospective Students Understand the Computing Disciplines
 
Constructing a Web Development Textbook
Constructing a Web Development TextbookConstructing a Web Development Textbook
Constructing a Web Development Textbook
 
Web Development for Managers
Web Development for ManagersWeb Development for Managers
Web Development for Managers
 
Disrupting the Discourse of the "Digital Disruption of _____"
Disrupting the Discourse of the "Digital Disruption of _____"Disrupting the Discourse of the "Digital Disruption of _____"
Disrupting the Discourse of the "Digital Disruption of _____"
 
17 Ways to Fail Your Courses
17 Ways to Fail Your Courses17 Ways to Fail Your Courses
17 Ways to Fail Your Courses
 
Red Fish Blue Fish: Reexamining Student Understanding of the Computing Discip...
Red Fish Blue Fish: Reexamining Student Understanding of the Computing Discip...Red Fish Blue Fish: Reexamining Student Understanding of the Computing Discip...
Red Fish Blue Fish: Reexamining Student Understanding of the Computing Discip...
 
Constructing and revising a web development textbook
Constructing and revising a web development textbookConstructing and revising a web development textbook
Constructing and revising a web development textbook
 
Computing is Not a Rock Band: Student Understanding of the Computing Disciplines
Computing is Not a Rock Band: Student Understanding of the Computing DisciplinesComputing is Not a Rock Band: Student Understanding of the Computing Disciplines
Computing is Not a Rock Band: Student Understanding of the Computing Disciplines
 
Citizenship: How do leaders in universities think about and experience citize...
Citizenship: How do leaders in universities think about and experience citize...Citizenship: How do leaders in universities think about and experience citize...
Citizenship: How do leaders in universities think about and experience citize...
 
Thinking About Technology
Thinking About TechnologyThinking About Technology
Thinking About Technology
 
A longitudinal examination of SIGITE conference submission data
A longitudinal examination of SIGITE conference submission dataA longitudinal examination of SIGITE conference submission data
A longitudinal examination of SIGITE conference submission data
 
Web Security
Web SecurityWeb Security
Web Security
 

Último

IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIES VE
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfFIDO Alliance
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfUK Journal
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...CzechDreamin
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastUXDXConf
 
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptxBT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptxNeo4j
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform EngineeringMarcus Vechiato
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsStefano
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandIES VE
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGDSC PJATK
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsLeah Henrickson
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty SecureFemke de Vroome
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...marcuskenyatta275
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimaginedpanagenda
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FIDO Alliance
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaCzechDreamin
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...FIDO Alliance
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfFIDO Alliance
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Patrick Viafore
 

Último (20)

IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptxBT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 

ASP.NET 03 - Working With Web Server Controls

  • 1. Chapter 3 Working with the Standard Web Server Controls
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14. List of the Common Web Server Controls Displays a drop-down list for selecting a value from a list of values. DropDownList Displays a multiselection check box group. CheckBoxList Displays a check box for selected true or false values. CheckBox Displays a month calendar from which the user can select dates. Calendar Displays a push button that posts a Web form page back to the server. Button Displays a bulleted list of items. BulletedList
  • 15. List of the Common Web Server Controls Displays static content that can be set programmatically and whose content can be styled. Label Displays an image with predefined hot spot regions that post back to the server or navigate to a different page. ImageMap Displays an image that posts the form back to the server ImageButton Displays an image. Image Displays a hyperlink that when clicked requests a different page. HyperLink Stores a nondisplayed value in a form that needs to be persisted across posts. HiddenField
  • 16. List of the Common Web Server Controls Creates a text box form element. TextBox Creates an HTML table; principally used for programmatically constructing a table. Table Creates a group of radio button form elements. RadioButtonList Creates a radio button form element. RadioButton Like the Label, displays static content that is programmable. Unlike the Label control, it does not let you apply styles to its content. Literal Displays a hyperlink that when clicked requests a different page. Creates a single- or multiselection list. ListBox Creates a hyperlink-style button that posts the form back to the server. LinkButton
  • 17.
  • 19.
  • 20. Some Properties of the WebControl Class The width of the control. Width The tool tip text (i.e., the text that appears when the mouse rests over control) for the control. ToolTip Font information for the control. This property contains subproperties . Font The CSS class name assigned to the control. CssClass The thickness (in pixels) of the control’s border. BorderWidth The background color (either standard HTML color identifier or the name of the color) of the control. BackColor
  • 21. Some Properties of the Control Class Specifies whether the control is visible. Visible The unique identifier for the control . Id
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31. Literal vs Label Control Label controls are (by default) rendered in the browser as static text within an HTML <span> element, e.g., <asp:Label id=&quot;labMsg&quot; runat=&quot;server&quot; text=&quot;hello&quot;/> will be rendered as <span id=&quot;labMsg&quot;>hello</span> The Literal control does not add any HTML elements to the text , e.g., <asp:Literal id=&quot;litMsg&quot; runat=&quot;server&quot; text=&quot;hello&quot;/> will be rendered as hello
  • 32.
  • 33. asp:label as HTML <label> <asp:Label ID=&quot;labName&quot; runat=&quot;server&quot; AccessKey=&quot;N&quot; AssociatedControlID=&quot;txtName&quot; Text=&quot;<u>N</u>ame&quot; /> <asp:TextBox ID=&quot; txtName &quot; runat=&quot;server&quot; /> <label for=&quot;txtName&quot; id=&quot;labName&quot; AccessKey=&quot;N&quot; > <u>N</u>ame </label> <input type=&quot;text&quot; id=&quot;txtName&quot; /> rendered as
  • 34. TextBox TextMode=&quot;MultiLine&quot; TextMode=&quot;Password&quot; MaxLength=&quot;2&quot;
  • 35. Button-Style Controls Button LinkButton ImageButton
  • 36.
  • 38. Key Properties of ListControl The value of the list item that was selected SelectedValue The list item that was selected. SelectedItem The index (starting with 0) of the selected list item(s). SelectedIndex The collection of ListItems in the control. Items Specifies the field name of the data source that will provide the value for each list item. DataValueField Specifies the formatting string that controls the visual display of the list content. DataTextFormatString Specifies the field name of the data source that will provide the textual content for the list. DataTextField
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.