User Controls MacDonald pp. 381-386 MIS 324 MIS 324 Professor Sandvig Professor Sandvig.

Slides:



Advertisements
Similar presentations
Chapter 3 – Web Design Tables & Page Layout
Advertisements

WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Customizing the SharePoint 2013 UI with JavaScript.
1 Lesson 10 Using JavaScript with Styles HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
Web Applications Development Using Coldbox Platform Eddie Johnston.
Caching MacDonald Ch. 26 MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Stored Procedures & User Defined Functions MacDonald Ch. 23 MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
Navigation Controls MacDonald Ch. 11 MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
DT228/3 Web Development JSP: Directives and Scripting elements.
Business Object Payne Ch. 15 MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
Microsoft Office System UK Developers Conference Radisson Edwardian, Heathrow 29 th & 30 th June 2005.
Web Forms. Agenda Web forms Web controls Code separation Dynamic compilation System.Web.UI.Page User controls.
CST JavaScript Validating Form Data with JavaScript.
Web Form Fundamentals MacDonald Ch. 5 MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
Java Server Pages (JSP) Presented by: Ananth Prasad & Alex Ivanov May 10, 2001.
UFCEKG-20-2 Data, Schemas & Applications Lecture 4 Server Side Scripting & PHP.
INTRODUCTION TO DHTML. TOPICS TO BE DISCUSSED……….  Introduction Introduction  UsesUses  ComponentsComponents  Difference between HTML and DHTMLDifference.
PHP Tutorials 02 Olarik Surinta Management Information System Faculty of Informatics.
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms.
.NET Validation Controls MacDonald Ch. 8 MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
Dynamic Web Pages (Flash, JavaScript)
Tracing, Logging, and Error Handling MacDonald Ch. 8 MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Introduction to ASP.NET MIS 324 Professor Sandvig.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 65 – Manipulating Data Using Methods – Java Applet.
Entity Framework MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
What’s Next? MIS 314 Professor Sandvig. Outline  What’s Next? ISC tracks ISC tracks E-commerce developer track E-commerce developer track MIS Intermediate.
Web Server Controls MacDonald Ch. 5 MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
PHP INCLUDES FOR MODULARIZATION CIT 230 – WEB FRONT-END DEVELOPMENT.
Overview of Data Access MacDonald Ch. 15 MIS 324 Professor Sandvig.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
Maintaining State MacDonald Ch. 9 MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
# epi7fin #episerver7 1. Petri Isola Lead Technical Sales Engineer EPiServer 7: Content Blocks 2.
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.
Website Features as of January 12, Site Menu Manager Click and drag menu item management Menu item renaming.
About These Slides This slide set is designed to be used with the OMA sample application It is recommended you follow the steps outlined in the “Preparing.
Roles 1. Your Role: End User End Users use Inside NCDOT and Connect NCDOT for basic browsing and reading Typical tasks can include: Open or download files.
Crazy New CSS Tools MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
Nested componentization for advanced Web portal solutions Svebor Prstačić, dipl. ing., Dr. sc. Ivan Voras, Dr. sc. Mario Žagar.
Microsoft ® Official Course Developing a Publishing Site for Web Content Microsoft SharePoint 2013 SharePoint Practice.
Master Pages MacDonald Ch. 13 MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
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.
HTML 5 The Future of Web Development. What is HTML5? “HTML5 is a specification of how the web’s core language, HTML, should be formatted and utilized.
 Pages within our Framework  Categories within Framework  Products within Framework  Model-View-Controller description of Page, category and products.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
Data Listing Web Controls MacDonald Ch MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
Javascript Overview. What is Javascript? May be one of the most popular programming languages ever Runs in the browser, not on the server All modern browsers.
Display Page (HTML/CSS)
Model View ViewModel Architecture. MVVM Architecture components.
Building Custom Controls with ASP.NET and the Microsoft ®.NET Framework Rames Gantanant Microsoft Regional Director, Thailand
SDJ INFOSOFT PVT. LTD. 2 BROWSERBROWSER JSP JavaBean DB Req Res Application Layer Enterprise server/Data Sources.
1 Web Search What are easy ways to create a website? 2 Web Search What is a blog? What type of content does this type of website provide? 3 Web.
MIS Professor Sandvig MIS 324 Professor Sandvig
Intro to JavaScript CS 1150 Spring 2017.
Topic: Functions – Part 2
Exception Handling .NET MVC
Layout and Partial Views
C# Object Oriented Programming Concepts
Modern web applications
Working with Server-side Scripts
MIS Professor Sandvig MIS 324 Professor Sandvig
Modern web applications
Layout and Partial Views
USER CONTROL.
ASP.NET Imran Rashid CTO at ManiWeber Technologies.
Presentation transcript:

User Controls MacDonald pp MIS 324 MIS 324 Professor Sandvig Professor Sandvig

Outline What are User Controls FeaturesImplementation Basic Basic Passing parameters Passing parametersExample Compared to PHP include() Summary

What are User Controls? Reusable UI code Classes User Controls Code Interface ReusabilityModularityEncapsulation

Features Syntax similar to.aspx page Script tags Script tags Page events Page eventsReusability Use in many.aspx page Use in many.aspx page Header, footers menus Header, footers menusCaching Allows to cache parts of a page Allows to cache parts of a pageNesting User controls can call other user controls User controls can call other user controls

Implementation File extension:.ascx Register user control on.aspx page Page directives Page directives Initialize in code render block Similar to web controls Similar to web controls Pass parameters in as properties 1.In code render block myHeading=“Featured Product” 2.Programatically: ucLeftMenu.Heading = “Featured Product”

Implementation Control Properties Create Class Property Create Class Property Get & Set Get & Set Displayed by Intellisense Displayed by Intellisense See handout See handout

Implementation Examples: Application: MIS 324 web site Application: MIS 324 web siteMIS 324 web siteMIS 324 web site Buttons, content, search, quotes, weather SSI for header and footer, groups of buttons Syntax: output (source) Syntax: output (source)outputsourceoutputsource Moving data between.aspx &.ascx In: No problem In: No problem Out: Out: Timing is an issue Creates undesirable dependency Solution: handle events inside.ascx Solution: handle events inside.ascx

Summary Benefits of User Controls Reusable UI code Reusable UI code Encapsulation Encapsulation Compartmentalize functionality Pass in properties Pass in properties Fire own set of page events Fire own set of page events Use to fill controls from data source Capture control events Capture control events Caching Caching Easy to use Easy to use