USER CONTROL.

Slides:



Advertisements
Similar presentations
Master Pages, User Controls, Site Maps, Localization Svetlin Nakov Telerik Corporation
Advertisements

Module 8: Creating User Controls. Overview Adding User Controls to an ASP.NET Web Form Creating User Controls.
Internetteknologi (ITNET2) Presentation 21: ASP.NET Advanced.
Web Forms and ASP.NET Programming Right from the Start with Visual Basic.NET 1/e 12.
 Copyright Wipro Technologies JSP Ver 1.0 Page 1 Talent Transformation Java Server Pages.
User Controls, Master Pages, GridView. Content User Controls Styles, Themes, Master Pages Working with Data GridView Muzaffer DOĞAN - Anadolu University2.
Overview of ASP.NET Prepared By : Lec : Zalak Thakrar Follow Me on
1 Chapter 20 — Creating Web Projects Microsoft Visual Basic.NET, Introduction to Programming.
Options for automated tests DatabaseBusiness Logic User Interface Database Unit Tests T T T T T T T T T T T T T T T T T T T T T T T T Web Performance.
JavaServer Faces: The Fundamentals Compiled from Sun TechDays workshops (JSF Basics, Web-Tier Codecamp: JavaServer Faces, Java Studio Creator; IBM RAD)
LAYING OUT THE FOUNDATIONS. OUTLINE Analyze the project from a technical point of view Analyze and choose the architecture for your application Decide.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
DR.JOHN ABRAHAM PROFESSOR UTPA ASP.NET. ACTIVE SERVER PAGES (ASP) Web application development environment Web applications use web browser to display.
CSE3310: Web training A JumpStart for Project.
ASP.NET  ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required.
Christopher M. Pascucci.NET Programming: Forms & Controls.
Christopher M. Pascucci.NET Programming: Basic ASPX Scripting & HTML Embedment.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 65 – Manipulating Data Using Methods – Java Applet.
INSPIRING CREATIVE AND INNOVATIVE MINDS Module 4: Adding Code to a Microsoft ASP.NET Web Form Implementing Code-Behind Pages Adding Event Procedures to.
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
ASP.NET application. Roadmap ASP.NET file types Bin directory Application updates Simple application from start to finish using a virtual directory Behind.
Cross-Language Demo Demonstrates mixing C# and VB.NET code C# Class CSDemoClass.cs VB.NET Class VBDemoClass.vb “Main” class (C#) Demo.cs.
Svetlin Nakov Technical Trainer Software University
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Unit 3: Adding Code to a Microsoft ASP.NET Web Form.
Ventsislav Popov Crossroad Ltd.. 1. What is AJAX?  AJAX Concept  ASP.NET AJAX Framework 2. ASP.NET AJAX Server Controls  ScriptManager, UpdatePanel.
C# AND ASP.NET What will I do in this course?. MAJOR TOPICS Learn to program in the C# language with the Visual Studio IDE (Interactive Development Environment)
Name Microsoft Student Partner Overview of the Visual Studio 2005 Express Products.
Session 4: HTML and Web Server Controls. Outline Creating Web Forms Using Server Controls HTML Server Controls Web Server Controls Writing ASP Code Inline.
Module 1: Working with ASP.NET. Overview Introducing ASP.NET Creating Web Forms Adding ASP.NET Code to a Page Handling Page Events Discussion: ASP vs.
Exploring ASP.NET MVC 4.  Các mô hình phát triển Web ASP.Net  Kiến trúc phát triển ứng dụng Web MVC  Khám phá ASP.Net MVC  Tổ chức, Cấu hình dự án.
Christopher M. Pascucci.NET Programming CodeBehind.
Module 8: Creating User Controls. Overview Adding User Controls to an ASP.NET Web Form Creating User Controls.
Introduction to ASP.NET What is ASP.NET and how is different from ASP –ASP: server side technology for creating dynamic web pages using scripting languages.
ASP.NET User Controls. User Controls In addition to using Web server controls in your ASP.NET Web pages, you can create your own custom, reusable controls.
1 10/19/05CS360 Windows Programming ASP.NET. 2 10/19/05CS360 Windows Programming ASP.NET  ASP.NET works on top of the HTTP protocol  Takes advantage.
CIS 375—Web App Dev II ASP.NET 4 Server Controls.
CIS 375—Web App Dev II ASP.NET 1 Getting Started.
.NET Mobile Application Development XML Web Services.
Extending SharePoint through Web Parts and ASP.NET 최승현 대리 한국마이크로소프트.
1111 Creating HTML Programatically Objectives You will be able to Invoke C# code on the server from an ASP.NET page. Write C# code to create HTML.
11 User Controls Beginning ASP.NET in C# and VB Chapter 8.
 ASP.NET provides an event based programming model that simplifies web programming  All GUI applications are incomplete without enabling actions  These.
CSE3310: Web training A JumpStart for Project. Outline Introduction to Website development Web Development Languages How to build simple Pages in PHP.
Name Title Microsoft Corporation
ASP.NET Architecture Mike Taulty Developer & Platform Group Microsoft Ltd
DYNAMIC CONTENT DELIVERY
Computing with C# and the .NET Framework
ASP.NET Forms.
Working with ASP.NET Server Controls
Validation Controls, User Controls, Master Pages
© 2016, Mike Murach & Associates, Inc.
Using ASP.NET Master Pages
Chapter 8 User Controls.
Haritha Dasari Josue Balandrano Coronel -
Module 1: Getting Started
برمجه صفحات الانترنتASP
מבוא ל ASP.NET שיעור 1 : מבוא ל ASP.NET מצגת מס' 1
Moving from ASP to ASP.NET
Web Development Using ASP .NET
Introducing ASP.net with Visual Studio Environment
JavaServer Faces: The Fundamentals
Unit 2 Test Building a Web Page Test.
ASP.NET.
Building ASP.NET Applications 2
Web Development Using ASP .NET
An Introduction to JavaScript
11.1 Applets & graphics.
MASTER PAGES.
ASP.NET MVC Imran Rashid CTO at ManiWeber Technologies.
Server Controls Validation Controls
Presentation transcript:

USER CONTROL

What is a User Control ? User controls simplify the reuse of code and UI components within a Web application A user control is a user-defined Web server control with an .ascx extension Contains HTML, but not the <HTML>, <BODY>, or <FORM> tags <%@ Control Language="vb" %> OR <%@ Control Language="c#" %> Contains code to handle its own events

Creating a User Control Two methods for user control creation: Create a new user control using Visual Studio .NET Convert an existing ASP.NET page to a user control Host page interacts with the control using properties Host page should use flow layout Public Property pNum() As Integer Get Return Convert.ToInt32(txtNum.Text) End Get Set (ByVal value As Integer) txtNum.Text = CStr(value) End Set End Property public int pNum { get return Convert.ToInt32(txtNum.Text); } set txtNum.Text = Convert.ToString(value);

Adding a User Control Use the @ Register directive to include a user control in an ASP.NET Page <%@ Register TagPrefix="demo" TagName="validNum" Src="numberbox.ascx" %> Insert the user control in a Web Form <demo:validNum id="num1" runat="server"/> Use Get and Set properties of the user control num1.pNum = 5 'uses Set x = num1.pNum 'uses Get OR num1.pNum = 5; //uses Set x = num1.pNum; //uses Get

Why Use User Controls? Application A Application B Reuse user interface and code Application A Control1.ascx Application B Page3.aspx Page1.aspx Page2.aspx