Things like Textboxes, Lables, ‘n’at. ASPX page is not HTML Controls are rendered into markup that a browser can understand Some controls are rendered.

Slides:



Advertisements
Similar presentations
HTML Forms. collect information for passing to server- side processes built up from standard widgets –text-input, radio buttons, check boxes, option lists,
Advertisements

ASP.NET Intro An introduction to the languages and communication of an ASP.NET system.
Tutorial 6 Creating a Web Form
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
SE-2840 Dr. Mark L. Hornick 1 HTML input elements and forms.
Asp.NET Core Server Controls. Slide 2 Lecture Overview Understanding the types of ASP.NET controls HTML controls ASP.NET (Web) controls.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 3-1 of…
ASP.NET Validating user input Validating user input on the client and/or server side 1ASP.NET Validating User Input.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
IMAGES Controlling size of images in CSS Aligning images in CSS Adding background images.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
1 Designing & Developing Web- Based Solutions in ASP.NET Week 2 Themes & Master Pages.
Ch6:creating consistent looking web sites. Master pages Master page defines a combination of fixed content and content place holder to hold the web page(.aspx)
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
.Net is a collection of libraries, templates and services designed to make programming applications of all kinds, easier, more flexible (multi platform),
February 16, Aaron Cuffman Andy Nagle Adam Schultz Web Site.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Like coffee if coffee could read a script (that would be coffeescript)
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 4-1 of…
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Chapter 4 – Working with ASP.NET Controls Dr. Stephanos Mavromoustakos.
ASP.NET Controls. Slide 2 Lecture Overview Identify the types of controls supported by ASP.NET and the differences between them.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Web User Controls This presentation will cover the basics of defining, creating and using a web user control. Presented to Twin Cities.NET user group By.
PHP Form Introduction Getting User Information Text Input.
Button and Textbox. Input  Input objects are used to obtain input from the user viewing the webpage. They allow the user to interact with the Web. 
Module 4: Creating a Microsoft ASP.NET Web Form. Overview Creating Web Forms Using Server Controls.
Chapter 4: Working with ASP.NET Server Controls OUTLINE  What ASP.NET Server Controls are  How the ASP.NET run time processes the server controls on.
HTML Forms. Slide 2 Forms (Introduction) The purpose of input forms Organizing forms with a and Using different element types to get user input A brief.
HTML Forms a form is a container for input elements on a web page input elements contain data that is sent to the web server for processing.
TRAINING SESSIONS.NET Controls.  Standard Controls  Label  Textbox  Checkbox  Button, Image Button, Image control  Radio Button  Literal  Hyperlink.
CSCI 6962: Server-side Design and Programming Master Pages.
+ FORMS HTML forms are used to pass data to a server. begins and ends a form Forms are made up of input elements Every input element has a name and value.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
HTML Forms.
Asp.NET Core Server Controls. Slide 2 Lecture Overview Understanding the types of ASP.NET controls HTML controls ASP.NET (Web) controls.
Creating Accessible Web Forms Sandy Clark Constella Group
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring Forms, HTML5 layout.
JavaScript Introduction and Background. 2 Web languages Three formal languages HTML JavaScript CSS Three different tasks Document description Client-side.
Learning Aim C.  In this section we will look at how text, tables, forms and frames can be used in web pages.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
HTML III (Forms) Robin Burke ECT 270. Outline Where we are in this class Web applications HTML Forms Break Forms lab.
This screen may be skipped altogether if the user chooses a report from the server and clicks Ad Hoc or Edit or whatever. Also, the next screen would ordinarily.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
Ashima Wadhwa Java Script And Forms. Introduction Forms: –One of the most common Web page elements used with JavaScript –Typical forms you may encounter.
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
Creating and Processing Web Forms
Advanced HTML Tags:.
Working with ASP.NET Server Controls
ASP.NET Web Controls.
Working with ASP.NET Master Pages.
Chapter 8 User Controls.
Objectives Design a form Create a form Create text fields
برمجه صفحات الانترنتASP
Web Systems Development (CSC-215)
JavaScript Form Validation
ASP.NET.
Building ASP.NET Applications 2
Web Development Using ASP .NET
Web App Development with ASP.NET
ASP.NET Imran Rashid CTO at ManiWeber Technologies.
MASTER PAGES.
Client-Server Model: Requesting a Web Page
Server Controls Validation Controls
Web App Development with ASP.NET
Presentation transcript:

Things like Textboxes, Lables, ‘n’at

ASPX page is not HTML Controls are rendered into markup that a browser can understand Some controls are rendered as HTML Some controls are rendered as javascript Some controls don’t render at all

A Simple Control Important Notes: Runat=“server” Required if you want to be rendered as a server control instead of regular HTML ID=“Label1” Required if you want to access this control from the code- behind.

How Does it Render? Awesome Label In this case, the control renders as less code than there was in the ASPX page not the case with all controls Will render differently based on the HTTP context (different browsers, HTTP versions, mobile support, etc.)

Name Mangling ASP.NET ID’s are not guaranteed to stay the same when a page is rendered ASP.NET “mangles” the name to make it unique on a page.

Name Mangling If The Page is placed inside a master page [EPIC FORSHADOWING]: Awesome Label Controls are named with the name of its containing control.

Name Mangling Id’s are different on the client side compared to the server side This is important to know if you are using *any* client side code. Use the Control.ClientID to access this name from the server side

Textboxes Similar to Label control Can use this control to get input from the user

Textboxes Textboxes render as. The “text” field is rendered as “value”

DropDownList

DropDownList Option 1 Option 2

CheckBoxList

CheckBoxList Option 1 Option 2

CheckBoxList Note this: This lets you click on the name of the checkbox and still “check” the box Many server controls are rendered with tables This makes the display more consistent across browsers* This is so ASP.NET doesn’t have to make assumptions about any CSS styling your page uses

User Controls Used to group multiple controls and treat them as a single control Can be used more than once on a page, and on multiple pages

A Simple User Control

A Simple User Control

Using a User Control in a page

Master Pages Common layout for a group of pages The old way: User control placed at the top of every page The new way: A page inside a page Inside a page INSIDE YOUR DREAM!

Creating a Master Page

Important Notes ContentPlaceHolder This is where child pages are rendered You need at least one of these if you want child content to render If you define a content placeholder, child pages need to use them

Using a Master Page <asp:Label ID="Label1" runat="server" Text="Awesome Label“

Accessing the master page On the Designer page: And in the Code Behind: string x = Master.CustomProperty;