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

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbuapidays
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 

Último (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 

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.