Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN 6710 - Section A – TR 9:30-10:45 CRN 10570 – Section B – TR 5:30-6:45.

Slides:



Advertisements
Similar presentations
Unit 02. ASP.NET Introduction HTML & Server controls Postbacks Page Lifecycle.
Advertisements

Microsoft Expression Web-Illustrated Unit J: Creating Forms.
CSW131 Steven Battilana 1 CSW 131 Free MS Software (MSDNAA) MS Visual Web Developer W3 / Mozilla Code Validators Uploading Your Website Summer 2013 Prepared.
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
Web-Based Applications
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
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.
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.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Copyright 2007, Information Builders. Slide 1 Maintain & JavaScript: Two Great Tools that Work Great Together Mark Derwin and Mark Rawls Information Builders.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Creating a Web Site to Gather Data and Conduct Research.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
CSCI 6962: Server-side Design and Programming Introduction to Active Server Pages.
MIS 3200 – C# (C Sharp)
Fall 2005 Using FrontPage to Enhance Blackboard - Darek Sady1 Using FrontPage to Enhance Blackboard 1.Introduction 2.Starting FrontPage 3.Creating Documents.
C# Tutorial -1 ASP.NET Web Application with Visual Studio 2005.
Microsoft Visual Basic 2005 CHAPTER 7 Creating Web Applications.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 1 1 Microsoft Office FrontPage 2003 Tutorial 1 – Creating a Web Site.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
1 Chapter 12 – Web Applications 12.1 Programming for the Web, Part I 12.2 Programming for the Web, Part II 12.3 Using Databases in Web Programs.
Using Microsoft Visual Studio C++ Express 2005 Name: Dr Ju Wang Ashwin Belle Course Resource:
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.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Creating a Dynamic Web Page Template Module 5: Beyond the Basics with Expression Web LESSON 10.
Chapter 1 Getting Started With Dreamweaver. Exploring the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Photoshop Image Slicing. Reasons to Image Slide To create links out of sliced images To optimise different areas. (flat areas of colour, such as logos,
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Web Development in Microsoft Visual Studio 2013 / 2015.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
1111 Creating ASPX Controls Programatically Objectives You will be able to Dynamically add controls to a page. Dynamically alter properties of controls.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Learning Aim C.  In this section we will look at how text, tables, forms and frames can be used in web pages.
Creating a Web Site Creating a new Web site Defining and using folders Creating and editing Web pages Viewing pages in a Web browser.
Beginning ASP.NET in C# and VB Chapter 9
Working with ASP.NET Controls What is ASP.NET Using server controls in your pages Allowing users to create their own accounts Creating a login page Letting.
Tutorial 6 Creating Reusable Assets and Forms. Objectives Session 6.1 – Explore the head content of a page – Add keywords to a page – Add a meta description.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc.Slide 1.
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
MIS 3200 – C# (C Sharp)
Getting Started with Dreamweaver
Chapter 2: The Visual Studio .NET Development Environment
Section 17.1 Section 17.2 Add an audio file using HTML
* Lecture # 7 Instructor: Rida Noor Department of Computer Science
Visual programming Chapter 1: Introduction
Web Development in Microsoft Visual Studio 2013
Integrating JavaScript and HTML
1. Open Visual Studio 2008.
Getting Started with Dreamweaver
Static and Dynamic Web Pages
Programming with Microsoft Visual Basic 2008 Fourth Edition
Mr. Justin “JET” Turner CSCI 3000 – Fall 2016 Section DA MW 4:05-5:20
Presentation transcript:

Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45

Server Side Languages There are several choices for server side programming languages for web content, but PHP and.NET currently have the largest market shares.NET has between 15-30%, including: msn.com Microsoft.com nytimes.com chase.com Walmart.com bankofamerica.com

.NET.NET applications are generally written in Visual Studio We are going to use Visual Studio 2013 to build some simple web pages In general, when building.NET web applications, we need to chose between C# and Visual Basic(VB) For this course, we are going to use C#

Visual Studio 2013 When opening VS2013, choose “Visual C#” from the dropdown of pre-defined Development Settings If you chose “General” on accident, you can go to Tools -> Import and Export Settings -> Reset all settings -> just reset settings -> Choose Visual C# and click Finish New Project… Templates -> Visual C# -> Web Choose a name for your application Choose a save path (I recommend your P drive) On the next screen choose the Empty template

.NET Master Page When building CI sites, we used a “template” view to set up our headers/footers/etc In.NET, we use what is called a “Master Page” Right click on your project name in the Solution Explorer window Choose Add -> New Item… Scroll to the bottom of the list and choose “Web Forms Master Page” In CI, we loaded views inside of views, in the Master Page, we need to set up Content Placeholders

.NET Master Page The master page is not a page that can be actually rendered on the website, but rather just a template for other pages The ContentPlaceHolder tags produce regions where child pages can insert content into the overall template These regions are not dynamically maintained in the child pages, so you want to try and get them as close to correct before you start building pages as possible to keep from needing to re-touch all your pages later

.NET Master Page Next, lets create a folder called Styles and Scripts and add a style sheet and JavaScript file to each We can add these to the master page by dragging them into the correct position Go ahead and add jQuery to the master page as well

.NET - Notes Top line on each page Look at the three files that make up a page form tag runat=“server” Adding/Removing/Modifying ContentPlaceHolders Layered Templates

.NET Web Page Now we can create our first web page From the New menu, create a Web Form with Master Page and name it Default.aspx In.NET applications, the home page is often called Default.aspx, just like in html it is index.html or php it is index.php The ContentPlaceHolders from earlier are the only regions we can add content to the Default page Adding content outside of these tags will throw error messages

.NET Web Page Let’s add a little bit of content to this page and test to see if everything is set up correctly by pressing “F5” Menu: Debug->Start Debugging Once we confirm that is working, we can close the browser window We also need to tell Visual Studio to Stop Debugging so we can edit pages again

.NET Web Page Let’s build a simple form by dragging some controls from the toolbox to the page Again, lets test to ensure this is loading on the page the way we expect Now let’s set the button to get the text out of textbox and write it into the label To do this, let’s start by click on “Split” at the bottom which should show the code and a mock up of the form

.NET Web Page Now, if we double click on the button, Visual Studio will automatically create a function that will execute when the button is clicked If we go back to Default.aspx, we will see that an attribute was added to the button control OnClick=“MyButton_Click” Back in the code file – Default.aspx.cs, let’s write the code to get the content from our textbox into the label For this, we just need to use dot notation, and all the controls are already objects

.NET Code File protected void MyButton_Click(object sender, EventArgs e) { MyLabel.Text = MyTextbox.Text; } Now we can test the page again, and see if that works You should notice that C# syntax is relatively similar to Java This is because they both share similar roots in C

.NET Validation.NET validation uses client side validation through jQuery followed by Server Side validation To make the client side validation function properly, we need to include the jQuery library in the page (which we did on the master page) Next we need to register the jQuery script, which we will do inside of a Global Application Class file, which we can create from the New menu

.NET Global Inside of the Application_Start method, we need to tell the application what version of jQuery to use, and where it is located string JQueryVer = "1.11.3"; ScriptManager.ScriptResourceMapping.AddDefinition("jquery", new ScriptResourceDefinition { Path = " + JQueryVer + "jquery.min.js", DebugPath = " + JQueryVer + "jquery.min.js", CdnPath = " + JQueryVer + "jquery.min.js", CdnDebugPath = " + JQueryVer + "jquery.min.js", CdnSupportsSecureConnection = true, LoadSuccessExpression = "window.jQuery" });

.NET Validation Now, go back to Default.aspx and find the Validation section in the toolbox RequiredFieldValidator CompareValidator RangeValidator CustomValidator Add the server side check to the button click Page.IsValid

.NET Events Click on one of the controls we added to the form In the bottom right corner, the properties window has a lightning bolt, this is the events tab When you double click on a control, it chooses a default event to create a function for, from the events list, you can easily create functions for other events

Lab 6 – C#/MSSQL Due: Nov 5 Create a simple web form in C#.NET Minimum: 2 Text Fields, 1 Drop Down (include a blank option), 2 Radio Buttons grouped together, 3 Checkboxes, 1 Submit Button Create a MSSQL DB and Table to store the form submissions Ensure the form is properly validating all fields before inserting the data into the DB Output an HTML table containing the values in your DB table

Next Time Next time we will look at MSSQL and working with it from C#.NET Reminders: Lab 5 (AJAX) is due on Thursday (Oct 29 th ) Lab 6 (C#) is due on Nov 5 th Project 2 is due on Nov 5 th Term Project is due on Dec 10 th