












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
If you are looking for Web Programming course, you are at right place. This lecture key words are: Asp.Net Core Server Controls, Runat Attribute, Categorizing Server Controls, Generalities, Asp.Net Server Controls, Control State, Core Web Controls, Button Controls
Typology: Slides
1 / 20
This page cannot be seen from the preview
Don't miss anything!













Understanding the types of ASP.NET controls HTML controls ASP.NET (Web) controls
ASP.NET CONTROLS
HTML CONTROLS WEB CONTROLS
HTML controls always map to HTML tags All attributes are strictly compatible with XHTML They allow you to perform ‘some’ server side processing Web Controls (ASP.NET server controls) Are implemented by the ASP server as .NET Framework classes having a common .NET programming interface
A **** tag can be designated runat=“server” The Header property maps to the HTML **** tag
****
Store a value in the page header
protected void Page_Load(object sender, EventArgs e) { Header.Title = "IS 460 HTML Control Demo " + System.DateTime.Now.ToString(); }
The HTMLAnchor class implements **** tags **** tags designated runat=“server” and having an id will be seen by the server
These are unique to ASP.NET All are contained in the System.Web.UI.WebControls namespace All derive from WebControl runat=“server” attribute is required or the markup will be rendered verbatim They are not the same as HTML controls The programming interface is more intuitive
The Style property contains references a collection of CSS style MyControlStyle[“border-color”] = blue;
The CssClass contains the name of a defined CSS class txtStyleDemo1.CssClass = "TextBox"
Focus – sets input focus to the control instance when it is rendered HasControls – denotes whether this control instance has child controls Controls – a collection of child controls DataBind – binds the control instance to a data source
Adaptive rendering allows controls to render differently based on the browser Control properties can be declared for different browsers, as follows:
State information must often be persisted across page requests Control state is like view state You generally don’t mess with the control state
CausesValidation determines whether a validation is performed when the button is clicked. ValidationGroup also controls validation More next time Text contains the text that appears in the button Visible property displays or hides the button
The Panel control acts as a container for other controls The View control creates a group of interchangeable panels