C# Tutorial -1 ASP.NET Web Application with Visual Studio 2005.

Slides:



Advertisements
Similar presentations
Microsoft Expression Web-Illustrated Unit J: Creating Forms.
Advertisements

Data Base. Objective Become familiar with database terminology. Create a project to display data for a single database table. Use a DataGrid control.
Introduction to Online Data Collection (OLDC) Community Based Abstinence Education September, 2009.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
1 Welcome to the Colgate University Online Employment System Applicant Tutorial.
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
1 ADVANCED MICROSOFT WORD Lesson 15 – Creating Forms and Working with Web Documents Microsoft Office 2003: Advanced.
Welcome to the Alaska Statewide System Online Employment System Applicant Tutorial.
Microsoft Visual Basic 2005 CHAPTER 12 Cell Phone Applications and Web Services.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
Lab 8 – C# Programming Adding two numbers CSCI 6303 – Principles of I.T. Dr. Abraham Fall 2012.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
Welcome to the Second Tutorial Welcome to the second part of this communication system website tutorial! This tutorial is for church planters. When you.
September 5, 2015 Office Setup. Lesson Overview: Office Setup  In this lesson we will cover:  Adding new offices to COM  Individual office setup 
Welcome to the University of West Florida Online Employment System Applicant Tutorial.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
1 Web-Enabled Decision Support Systems Introduction to ASP.NET Prof. Name Position (123) University Name.
The SAU Website Workshop. Using the site Website Management The Campus Directory Form Manager Other available resources.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
IE 411/511: Visual Programming for Industrial Applications
Creating Web Applications Using ASP.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
Creating a Web Site to Gather Data and Conduct Research.
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
E-Commerce: Introduction to Web Development 1 Dr. Lawrence West, Management Dept., University of Central Florida Topics What is a Web.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 2 Welcome Application Introducing the Visual Basic 2008 Express Edition IDE.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Web Feature Data Access Pages.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 6 1 Microsoft Office FrontPage 2003 Tutorial 6 – Publishing a Web Site.
Credit Union National Association Installing and Uploading Project Zip Code.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
MIS 3200 – C# (C Sharp)
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved Business Driven Information Systems 2e Plug-In T6: Basic Skills and Tools Using.
AUTOMATION OF WEB-FORM CREATION - KINNERA ANGADI – MS FINAL DEFENSE GUIDANCE BY – DR. DANIEL ANDRESEN.
Microsoft Visual Basic 2005 CHAPTER 7 Creating Web Applications.
Introduction to the Visual Studio.NET IDE (LAB 1 )
Unit 8.3 Learning Objectives Insert users into the ASP.NET Membership system from code Capture data being sent to the database Capture Exceptions that.
Training Guide for Inzalo SOP Users. This guide has been prepared to demonstrate the use of the Inzalo Intranet based SOP applications. The scope of this.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
Microsoft Visual Basic 2008 CHAPTER TWELVE Cell Phone Applications and Web Services.
ASP.NET The Clock Project. The ASP.NET Clock Project The ASP.NET Clock Project is the topic of Chapter 23. By completing the clock project, you will learn.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 7 – Creating and Using Templates in a Web.
Microsoft FrontPage 2003 Illustrated Complete Creating a Form.
FrontPage Tutorial Part 2 Creating a Course Web Site.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
Your Digital Technology Briefcase My information…when and where I need it.
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.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Joomla Awdhesh Kumar Singsys Pte Ltd. What is Joomla? Joomla is an award-winning content management system (CMS), which enables you to build Web sites.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
CMF For Content Authors. Slide 1©2001 Zope Corporation. All Rights Reserved. Outline Understand CMF approach to content Demonstrate content author goals.
Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc.Slide 1.
MIS 3200 – C# (C Sharp)
3.01 Apply Controls Associated With Visual Studio Form
Visual programming Chapter 1: Introduction
3.01 Apply Controls Associated With Visual Studio Form
Unit 27 - Web Server Scripting
GDSS – Digital Signature
Understanding the Visual IDE
Tutorial 7 – Integrating Access With the Web and With Other Programs
Programming with Microsoft Visual Basic 2008 Fourth Edition
Web User Control Development Environment: MS Visual Studio .NET 2005
Presentation transcript:

C# Tutorial -1 ASP.NET Web Application with Visual Studio 2005

Why Visual Studio 2005? We have it in our university! ASP.NET 2.0 Advanced Web Controls Ease to develop web sites / web applications Ease to design pages, concept of “Master Template” taken from MS FrontPage2003 Extensive support for Smartphone and Pocket PC based applications Integrated tools to design/build/create databases and tables Integration with Microsoft Office Applications, and can easily integrate with Microsoft Visio Support for extensive report generation

Things to do in Tutorial 1 Creating/Closing/Opening a “Web Application” on the server Sample Form Usage of Dropdown List, RadioButton List Usage of Required Field Validator Usage of Regular Expression Validator Usage of Compare Validator Cancelling all Validations on a particular action Transferring data between forms Usage of Resposne.Redirect Usage of QueryString

Initial Setup Path to server - \\kc-sce-class\cs551\\kc-sce-class\cs551 Map your network drive to this path If you are not clear then follow the snapshots. Open your “Windows Explorer” to start with. Click on Tools -> Map Network Drive Select a drive from the dropdown, say “B” drive and paste the server path under the folder option and click on “Finish”

Snapshot

How to open a Web Application? Click on Programs->Microsoft Visual Studio > Visual Studio 2005 Since this is recently installed, for the first time you might come across a pop-up window, which ask for the type of settings. Choose either “General Development Settings” or “Web Development Settings” If it is the first time VS 2005 is opened on that particular machine, you need to wait for couple of minutes in order to see the screen on the next slide

Welcome to VS 2005!

To open a web application – Click on “Create Web Site”

Select Language as “Visual C#” and appropriate location to create your project by typing the path or by hitting the browse button HTTP

Your project is created! Look out at the “Toolbox”, “Properties” window and “Solution Explorer” and rename the file to “Home.aspx”

Sample Web Application – Subscribe to Online Magazines User needs to input an address as his username, followed by his name, gender, age and user has to subscribe to a particular magazine, by selecting one from the given list. After the user inputs in the correct format, and hits the “Submit” button, user will be navigated to another page/web form, where a summary of his information will be displayed.

Add Web Controls Drag in 7 labels, 5 textboxes, 1 dropdown list, 1 radiobutton list and 2 button controls. Your form should look like below

Setting properties to controls - 1 In order to name the labels, click on the label an set the Text property to “E- Mail Address:” as shown below. Similarly set the names for other labels.

Setting properties to controls - 2 Change the ID of the address to textbox to txt as shown below and also change the ID’s of other controls as per the table below

Setting properties to controls - 3 Since fields which enter password, should not actually display the entered text, we need to set a special property for this purpose. Select the textbox which will accept password and set the TextMode property to “Password”

Setting properties to controls - 4 In order to set values to the drop down list, select the dropdown list and click on “Items” Property to add values as shown below. Similarly set the values of the radiobutton list also.

Adding validations to form -.NET provides the below set of validations

Using Required Field Validator Drag in 3 required field validators, one each for , Password and Enter Again and set their “Error Message” property to “* Required Field” as shown below and also set the “ControlToValidate” property to “txt ” for Address, “txtPassword” for Password and “txtAgain” for Enter Again.

Using Regular Expression Validator for Drag in a regular expression validator for and set its “Error Message” property to “Invalid Format”. Set the “ControlToValidate” property to “txt ”. Click on “ValidationExpression” property and select “Internet Address” as shown below:

Using Regular Expression Validator for Phone Number Drag in a regular expression validator for Phone Number and set its “Error Message” property to “Format should be XXX-XXX-XXXX”. Set the “ControlToValidate” property to “txtPhone”. Click on “ValidationExpression” property and select “US Phone Number” as shown below:

How to cancel validations for a particular event? Required Field Validations always occur on the click of a button, I.e on the occurrence of an event. This holds fine for “Submit” button, but the validations should not come into effect when user clicks on “Cancel” button. In order to remove validations for a particular event such as for the cancel button, set the “Causes Validation” property to “false”.

Writing code for “Register” Event! Double click on the “Register” button and write code for btnRegister_Click function as shown below:

Adding another WebForm To add another webform, click on Website -> Add New Item and select a webform, and rename it to Registered.aspx as shown below:

Displaying result in “Registered.aspx” form Design a page as below with some labels to display the values passed from “Default.aspx” to “Registered.aspx”.

Add code for “Registered.aspx” Double click on the webform and add the below code to Page_Load function:

Select your start page! In the case of multiple webforms, we need to have a starting point. To set “Home.aspx” as start page, right click and select as shown:

Lets build the project Hit Ctrl +S – I mean save your work Click on Build -> Build Solution

Time to see the output Click on Debug -> Start without debugging as shown below, and a browser window will open

Here’s the output!

Hit “Register” to transfer info between forms