Chapter 2 Creating Website with Web Forms. Objectives Understand the different project types and templates when building ASP.NET web sites. The different.

Slides:



Advertisements
Similar presentations
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Advertisements

11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
Web Forms and ASP.NET Programming Right from the Start with Visual Basic.NET 1/e 12.
User Controls, Master Pages, GridView. Content User Controls Styles, Themes, Master Pages Working with Data GridView Muzaffer DOĞAN - Anadolu University2.
Anatomy of an ASP.NET Page. Slide 2 My Version of the Big Picture (1) ASP Worker (Engine) Your application Runs Server Other applications User 1User 2.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
1 Chapter 12 Working With Access 2000 on the Internet.
Web-Based Applications
1 Chapter 20 — Creating Web Projects Microsoft Visual Basic.NET, Introduction to Programming.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Getting Started with Dreamweaver
 Using Microsoft Expression Web you can: › Create Web pages and Web sites › Set what you site will look like as you design it › Add text, images, multimedia.
Web Site Navigation How to get around in an ASP.NET web application 1Web Site Navigation.
Introduction to.Net and ASP.Net Course Introduction Build Your Own ASP.Net Website: Chapter 1 Microsoft ASP.Net Walkthrough: Creating a Basic Web Forms.
1 Designing & Developing Web- Based Solutions in ASP.NET Week 2 Themes & Master Pages.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
JavaScript & jQuery the missing manual Chapter 11
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)
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Object-Oriented Application Development Using VB.NET 1 Chapter 12 Web Forms, HTML, and ASP.NET.
.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.
Beginning Web Site Development Module 1 – Dynamic Web Site Development Fundamentals of building dynamic Web sites with ASP.NET 2.0 and C# Version.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
NetTech Solutions Working with Web Elements Lesson 6.
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Introduction to ASP.NET 1www.tech.findforinfo.com.
CSCI 6962: Server-side Design and Programming Introduction to Active Server Pages.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
C# Tutorial -1 ASP.NET Web Application with Visual Studio 2005.
Introduction to ASP.NET T.Ahlam Algharasi. The Visual Studio IDE Start page 2.
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
Christopher M. Pascucci.NET Programming CodeBehind.
CSE 409 – Advanced Internet Technology Today you will learn  Styles  Themes  Master Pages Themes and Master Pages.
ASP.NET in Definition: 1.ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites,
Building an ASP.NET Website OUTLINE DIFFERENT PROJECT TYPES. DIFFERENT PROJECT TEMPLATES. NUMEROUS FILE TYPES AVAILABLE IN ASP.NET. CREATING STRUCTURED.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
11 Getting Started with ASP.NET Beginning ASP.NET in C# and VB Chapters 1 and 2.
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.
1111 Master Pages Beginning ASP.NET in C# and VB Chapter 6.
NASRULLAHIBA.  It is time to take your web designing skills to the next level with Cascading Style Sheets (CSS). They are a way to control the look and.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
CREATING MASTER PAGES Creating a Master Page Using Master Pages Giving your site a professional look and feel Adding Master Page content to existing pages.
1 Introducing Web Developer Tools Rapid application development tools ASP.NET-compatible web editors –Visual Studio.NET Professional Edition –Visual Studio.
Chapter 7 Navigation. Objectives How to move around in your site using server controls and plain HTML How to address pages and other resources like images.
Creating Consistent Looking Websites
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
Getting Started with Dreamweaver
Dreamweaver – Setting up a Site and Page Layouts
ASP.NET Forms.
Objective % Select and utilize tools to design and develop websites.
ASP.NET Web Controls.
Web Forms, HTML, and ASP.NET
Chapter 8 User Controls.
Haritha Dasari Josue Balandrano Coronel -
Objective % Select and utilize tools to design and develop websites.
Using Access and the Web
Microsoft Office Illustrated
Introduction to Internet Programming
Web Development in Microsoft Visual Studio 2013
Anatomy of an ASP.NET Page
Getting Started with Dreamweaver
Teaching slides Chapter 6.
Building ASP.NET Applications 2
Web Development Using ASP .NET
4.00 Apply procedures to add content by using Dreamweaver. (22%)
Presentation transcript:

Chapter 2 Creating Website with Web Forms

Objectives Understand the different project types and templates when building ASP.NET web sites. The different type of files available in ASP.NET and what they are used for. How to create a structure Website How to use the designer to create formatted web pages

Wrox Code You can download the code used in the book in the following link: and-VB.productCd X,descCd-DOWNLOAD.html and-VB.productCd X,descCd-DOWNLOAD.html

Different type of Projects Web Application Projects: Everything is managed as a project, with a project file. Provides more structured centralized organization. Web Site Projects: A Windows folder with files and subfolders. No project file that keeps track of all files. Templates: Web Forms, Empty Web Site, Dynamic Data Entities, WCF Service. We will be using Web Sites with the Web Forms Template When we launch a website, it will be execute by IIS express a built in web server that ships with Visual Studio.

Creating a new Website / Existing Website You can create a new website with New -> Website. Point it to the Chapter 2 folder called c:\BegASPBET\Site. Choose "ASP.NET Empty Website". You can always configure to show the solution with Tools -> Options and go to "Projects and Solutions" Hit Always show solution. You can also Open an Existing Website by going to File -> Open Website.

Adding Files Different Files to be added can be classified as web files, code files or data files. Web Files: Web Form (.aspx), Master Page (.masterpage), Web User Control (.ascx), HTML Page (.html), Style Sheet (.css), Web Configuration File (.config), Sitemap (.sitemap), Javascript (.js), Skin Files (.skin)

Adding Files Code Files: WCF Service (.svc) : Can be called by other systems. (Chapt 10) Class (.cs/.vb): Contains the code that is bound to web files. Global Application Class (.asax): Contain code that is fired in response to events that occur in your website Data Files: XML (.xml), SQL DB (.mdf), ADO.NE Entity Data Model (.edmx) : Used to access databases declaratively

Organizing your Website You can create Folders to organize the site. Add-> New Folder Some examples are a folder for styles or a folder for controls.

Adding code files With the exception of asp.cs code behind files,.cs files that you try to add will want to be added to the App_Code folder. Follow this criteria

Working with Web Forms Web Forms (.aspx files) contain a mix of HTML, ASP.NET Server Controls, javascript, CSS and programming logic. You can see the web form by looking at the Design, Source or split view Source View: Default view shows you HTML and markup (recommended) Design View: Shows you how the HTML might look in a browser. (THIS IS JUST TO GET AN IDEA, BUT SHOULD NEVER BE HEAVILY RELIED UPON. ELEMENTS MAY RENDER DIFFERENTLY IN THE BROWSER) Split View: A combination of both.

Working with Web Forms

Code behind or inline code? It is better to use the code behind method, so that the programming is separated into the.cs file and the aspx. file is used for the markup

Requesting an ASPX resource From the browsers perspective, when a request is made to a page, say MyPage.aspx the request gets sent to the web server. Any.net components are processed by the web server (IIS) and rendered into html. Any programing logic is executed and the end result will be browser compatible code (html).

Programmability in the source file When an ASP.NET resource is loaded into memory, several events may file. The basic one is code that is executed “Page Load” occurs when the page is loaded. We see this under the Page_Load method in the source code. We can add logic here. Supposed we create an asp label and named id “Label 1”. We can change its value with:

Adding Markup (the.aspx) Adding markup becomes easier through the design view first, because it creates a lot of the code for you by dragging the particular element. In the source view though, you will see the actual tag and attributes that get added when you add a particular element. In Design view, the formatting toolbar is available.

Adding Tables and Other Markup Tables are one of the main HTML elements that are often used. The tags create the start of the table. The tags define the row in the table. The tags define the cells in the table row. Tables can often be misused, but are practical unless you are really familiar with CSS styling. can be used to create an ordered list or can create an un ordered list. defines the elements within the list.

Example (Table) table,th,td { border: 1px sold black; border-collapse: collapse; } th, td { padding: 15px; } Alex Roque 100 Emmit Jackson 90

Examples (Ordered List) 6/27 Classes Start 7/4 NO CLASS 7/13 Online Lecture 8/3 Final

Adding Markup to your page Try it out Page 53 – Adding Formatted Text Try it out Page 57 – Adding Tables and Other Try it out Page 59 – Linking Pages

Connecting Pages It is important for websites to be able to navigate through different pages by creating links or Hyperlinks. We can connect pages through the following: The HTML Anchor element The control Programmatically through code by doing Redirects or Transfer.

Summary In this chapter we covered: Understanding the differences between the various project types and templates. Requesting a.NET resource, what goes on behind the scenes. How do we add a web form and how does a web form work How to add markup to your pages