ASP.NET Pearson Education, Inc. All rights reserved.

Size: px
Start display at page:

Download "ASP.NET Pearson Education, Inc. All rights reserved."

Transcription

1 1 ASP.NET

2 2 Rule One: Our client is always right. Rule Two: If you think our client is wrong, see Rule One. Anonymous

3 Introduction ASP.NET 2.0 and Web Forms and Controls Web application development with Microsoft s ASP.NET 2.0 technology Web Form files have the filename extension.aspx and contain the Web page s GUI Every ASPX file created in Visual Studio has a corresponding class written in a.net language, such as Visual Basic/ C# - Contains event handlers, initialization code, utility methods and other supporting code - Called the code-behind file - Provides the ASPX file s programmatic implementation

4 Creating and Running a Simple Web- 4 Form Example Program consists of two related files ASPX file C# code-behind file Example Show the output Step-by-step process to create the program Present the code (much of which is generated by Visual Studio)

5 5 WebTime ouput WebTime.cs Program Output

6 Creating and Running a Simple Web Form Example 6 Adding Web Form for project WebTime (Right click on project in Solution Explorer)

7 Creating and Running a Simple Web Form Example 7 Click on Add New Item and Add a Web Form for project WebTime.

8 Creating and Running a Simple Web Form Example 8 codebehind file ASPX file

9 Creating and Running a Simple Web Form Example 9 codebehind file ASPX file Solution Explorer window for project WebTime.

10 10 Creating and Running a Simple Web Form Example Toolbox in Visual Web Developer.

11 Creating and Running a Simple Web Form Example 11 Design mode button Source mode of Web Forms designer.

12 Creating and Running a Simple Web Form Example 12 Split mode of Web Forms designer.

13 Creating and Running a Simple Web Form Example 13 Code-behind file for WebTime.aspx.cs generated by Visual Web Developer.

14 Designing the Page 14 Designing a Web Form as simple as a Windows Form Use Toolbox to add controls to page in Design mode Control and other elements are placed sequentially on a Web Form position is relative to Web Forms upper left corner Alternate type layout (absolute positioning) is discouraged

15 Designing the Page 15 label Web Form WebForm.aspx after adding Label and setting its properties.

16 16 Adding Page Logic Open WebTime.aspx.cs Add to Page_Load event handler //display the server's current time in timelabel timelabel.text=datetime.now.tostring("hh:mm:ss");

17 17 Running the Program Can view the Web Form several ways Select Debug > Start Without Debugging - runs the app by opening it in a browser window - If created on a local file system URL Debug>Start Debugging - view web app in a web browser with debugging enabled - Do you want IDE to modify the web.config file to enable debugging? Click OK Finally, can open web browser and type the web page s URL in the Address field

18 Directive to specify information needed to process file WebTime.aspx This attribute determines how event handlers are linked to a <%-- Fig. 22.4: WebTime.aspx --%> control s events <%-- A page that displays the current time in a Label. --%> <%@ Page Language="C#" AutoEventWireup="true" CodeFile="WebTime.aspx.cs" Inherits="WebTime" EnableSessionState="False" %> 18 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " <html xmlns=" <head runat="server"> <title>simple Web Form Example</title> <style type="text/css"> #form1 { height: 255px; width: 655px; }.style1 { font-size: large; } </style> </head> Document type declaration, specifies document element name and URI Title for web page AutoEventWireUp set to true so ASP.NET treats method of name Page_eventName as an event handler for a specified event Specify class in the code-behind file from which this ASP.NET document

19 <body> <form id="form1" runat="server"> <div> Body tag, beginning of Web page s viewable content 19 <h2> <p> </div> Current time on the Web Server:</h2> </p> <asp:label ID="timeLabel" runat="server" </form> </body> </html> BackColor="Black" Font-Size="XX-Large" ForeColor="Lime"></asp:Label> Attribute indicates the server processes the form and generates HTML for client The asp:label control maps to HTML span element markup for the Label Web control

20 // WebTime.aspx.cs // The code-behind file for a page that displays the Web server's time. using System; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; // definitions for graphical controls used in Web Forms using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; public partial class WebTime : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { //display the server's current time in timelabel timelabel.text = DateTime.Now.ToString("hh:mm:ss"); } } Contains classes that manage client requests and server responses Contain classes for creation of Web-based applications and controls Event raised when Web page loads 20 Set timelabel s Text property to Web server s time

21 Examining an ASPX File Examining an ASPX File ASP.NET comments begin with <%-- and terminate with --%> Page directive - Specifies the language of the code-behind file ASP.NET markup is not case-sensitive, so using a different case is not problematic

22 Examining an ASPX File runat attribute - Indicates that when a client requests this ASPX file: Process the head element and its nested elements on the server Generate the corresponding XHTML Sent to the client asp: tag prefix in a control declaration - Indicates that it is an ASP.NET Web control Each Web control maps to a corresponding XHTML element - When processing a Web control, ASP.NET generates XHTML markup that will be sent to the client to represent that control in a Web browser span element - Contains text that is displayed in a Web page

23 1 <%-- Fig. 25.1: WebTime.aspx --%> 2 <%-- A page that displays the current time in a Label. --%> 3 <%@ Page Language="VB" AutoEventWireup="false" CodeFile="WebTime.aspx.vb" 4 Inherits="WebTime" EnableSessionState="False" %> 5 6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 7 " 8 9 <html xmlns=" > 10 <head runat="server"> 11 <title>a Simple Web Form Example</title> 12 </head> 13 <body> 14 <form id="form1" runat="server"> 15 <div> 16 <h2> 17 Current time on the Web server:</h2> 18 <p> 19 <asp:label ID="timeLabel" runat="server" BackColor="Black" 20 EnableViewState="False" Font-Size="XX-Large" 21 ForeColor="Yellow"></asp:Label> 22 </p> 23 </div> 24 </form> 25 </body> 26 </html> Outline ASP.NET comments WebTime.aspx Page directive to specify information needed by ASP.NET to process this file Document type declaration Mark up of a label web control Pearson Education, Inc. All rights reserved.

24 1 ' Fig. 25.2: WebTime.aspx.vb 2 ' Code-behind file for a page that displays the current time. 3 Partial Class WebTime 4 Inherits System.Web.UI.Page 5 6 ' initializes the contents of the page 7 Protected Sub Page_Init(ByVal sender As Object, _ 8 ByVal e As System.EventArgs) Handles Me.Init 9 ' display the server's current time in timelabel 10 timelabel.text = DateTime.Now.ToString("hh:mm:ss") 11 End Sub ' Page_Init 12 End Class ' WebTime Outline Retrieves the current time and formats it as hh:mm:ss WebTime.aspx.vb Pearson Education, Inc. All rights reserved.

25 Examining the XHTML Generated by an ASP.NET Application 25 XHTML Generated by an ASP.NET Application XHTML forms can contain visual and nonvisual components Attribute method Specifies the method by which the Web browser submits the form to the server Attribute action Identifies the name and location of the resource that will be requested when this form is submitted The runat attribute is removed when the form is processed on the server The method and action attributes are added The resulting XHTML form is sent to the client browser 2007 Pearson Education, Inc. All rights reserved.

26 1 <!-- Fig. 25.3: WebTime.html --> 2 <!-- The XHTML generated when WebTime.aspx is loaded. --> 3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 4 " 5 6 <html xmlns=" > 7 <head> 8 <title>a Simple Web Form Example</title> 9 </head> 10 <body> 11 <form name="form1" method="post" action="webtime.aspx" id="form1"> 12 <div> 13 <input type="hidden" name=" VIEWSTATE" id=" VIEWSTATE" value= 14 "/wepdwujodexmde5nzy5zgszvbs789nqeeonueqcncjqeugykw==" /> 15 </div> <div> 18 <h2>current time on the Web server:</h2> 19 <p> 20 <span id="timelabel" style="color:yellow; 21 background-color:black;font-size:xx-large;">13:51:12</span> 22 </p> 23 </div> 24 </form> 25 </body> 26 </html> Outline WebTime.html Declaration for a non-visual component: hidden input Represents the text in the label Pearson Education, Inc. All rights reserved.

27 27 Web Controls

28 Text and Graphics Controls Web control Label TextBox Button HyperLink DropDownList RadioButtonList Image Description Displays text that the user cannot edit. Gathers user input and displays text. Triggers an event when clicked. Displays a hyperlink. Displays a drop-down list of choices from which you can select an item. Groups radio buttons. Displays images (e.g., GIF and JPG) Pearson Education, Inc. All rights reserved.

29 1 <%-- Fig : WebControls.aspx --%> 2 <%-- Registration form that demonstrates Web controls. --%> 3 <%@ Page Language="VB" AutoEventWireup="false" 4 CodeFile="WebControls.aspx.vb" Inherits="WebControls" %> 5 6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 7 " 8 9 <html xmlns=" 10 <head runat="server"> 11 <title>web Controls Demonstration</title> 12 </head> 13 <body> 14 <form id="form1" runat="server"> 15 <div> 16 <h3>this is a sample registration form.</h3> 17 <p> 18 <em>please fill in all fields and click Register.</em></p> 19 <p> 20 <asp:image ID="userInformationImage" runat="server" 21 EnableViewState="False" ImageUrl="~/Images/user.png" /> 22 <span style="color: teal"> 23 Please fill out the fields below.</span> 24 </p> 25 <table id="table1"> 26 <tr> Set the color of a specific piece of text 27 <td style="width: 230px; height: 21px" valign="top"> 28 <asp:image ID="firstNameImage" runat="server" Outline WebControls.aspx (1 of 5) Pearson Education, Inc. All rights reserved.

30 29 EnableViewState="False" ImageUrl="~/Images/fname.png" /> 30 <asp:textbox ID="firstNameTextBox" runat="server" 31 EnableViewState="False"></asp:TextBox> 32 </td> 33 <td style="width: 231px; height: 21px" valign="top"> 34 <asp:image ID="lastNameImage" runat="server" 35 EnableViewState="False" ImageUrl="~/Images/lname.png" /> 36 <asp:textbox ID="lastNameTextBox" runat="server" 37 EnableViewState="False"></asp:TextBox> 38 </td> 39 </tr> 40 <tr> 41 <td style="width: 230px" valign="top"> 42 <asp:image ID=" Image" runat="server" 43 EnableViewState="False" ImageUrl="~/Images/ .png" /> 44 <asp:textbox ID=" TextBox" runat="server" 45 EnableViewState="False"></asp:TextBox> 46 </td> 47 <td style="width: 231px" valign="top"> 48 <asp:image ID="phoneImage" runat="server" 49 EnableViewState="False" ImageUrl="~/Images/phone.png" /> 50 <asp:textbox ID="phoneTextBox" runat="server" 51 EnableViewState="False"></asp:TextBox> 52 Must be in the form (555) </td> 54 </tr> 55 </table> 56 <p> Outline WebControls.aspx (2 of 5) Define a TextBox control used to collect the user s first name Pearson Education, Inc. All rights reserved.

31 57 <asp:image ID="publicationsImage" runat="server" 58 EnableViewState="False" 59 ImageUrl="~/Images/publications.png" /> 60 <span style="color: teal"> 61 Which book would you like information about?</span> 62 </p> 63 <p> 64 <asp:dropdownlist ID="booksDropDownList" runat="server" 65 EnableViewState="False"> 66 <asp:listitem>visual Basic 2005 How to Program 3e 67 </asp:listitem> 68 <asp:listitem>visual C# 2005 How to Program 2e 69 </asp:listitem> 70 <asp:listitem>java How to Program 6e</asp:ListItem> 71 <asp:listitem>c++ How to Program 5e</asp:ListItem> 72 <asp:listitem>xml How to Program 1e</asp:ListItem> 73 </asp:dropdownlist> 74 </p> 75 <p> 76 <asp:hyperlink ID="booksHyperLink" runat="server" 77 EnableViewState="False" NavigateUrl=" 78 Target="_blank"> 79 Click here to view more information about our books 80 </asp:hyperlink> 81 </p> 82 <p> 83 <asp:image ID="osImage" runat="server" EnableViewState="False" 84 ImageUrl="~/Images/os.png" /> Outline Defines a DropDownList WebControls.aspx (3 of 5) Each item in the dropdown list is defined by a ListItem element Adds a hyperlink to the web page Pearson Education, Inc. All rights reserved.

32 85 <span style="color: teal"> 86 Which operating system are you using?</span> 87 </p> 88 <p> 89 <asp:radiobuttonlist ID="operatingSystemRadioButtonList" 90 runat="server" EnableViewState="False"> 91 <asp:listitem>windows XP</asp:ListItem> 92 <asp:listitem>windows 2000</asp:ListItem> 93 <asp:listitem>windows NT</asp:ListItem> 94 <asp:listitem>linux</asp:listitem> 95 <asp:listitem>other</asp:listitem> 96 </asp:radiobuttonlist> 97 </p> 98 <p> 99 <asp:button ID="registerButton" runat="server" 100 EnableViewState="False" Text="Register" /> 101 </p> 102 </div> 103 </form> 104 </body> 105 </html> Outline WebControls.aspx Defines a (4 of 5) RadioButtonList control Each item in the dropdown list is defined by a ListItem element Defines a Button web control Pearson Education, Inc. All rights reserved.

33 Outline 33 WebControls.aspx (5 of 5) 2008 Pearson Education, Inc. All rights reserved.

34 34 Fig DropDownList Tasks smart tag menu.

ASP.NET Security. 7/26/2017 EC512 Prof. Skinner 1

ASP.NET Security. 7/26/2017 EC512 Prof. Skinner 1 ASP.NET Security 7/26/2017 EC512 Prof. Skinner 1 ASP.NET Security Architecture 7/26/2017 EC512 Prof. Skinner 2 Security Types IIS security Not ASP.NET specific Requires Windows accounts (NTFS file system)

More information

CST272 Getting Started Page 1

CST272 Getting Started Page 1 CST272 Getting Started Page 1 1 2 3 4 5 6 8 Introduction to ASP.NET, Visual Studio and C# CST272 ASP.NET Static and Dynamic Web Applications Static Web pages Created with HTML controls renders exactly

More information

ASP.NET - MANAGING STATE

ASP.NET - MANAGING STATE ASP.NET - MANAGING STATE http://www.tutorialspoint.com/asp.net/asp.net_managing_state.htm Copyright tutorialspoint.com Hyper Text Transfer Protocol HTTP is a stateless protocol. When the client disconnects

More information

Postback. ASP.NET Event Model 55

Postback. ASP.NET Event Model 55 ASP.NET Event Model 55 Because event handling requires a round-trip to the server, ASP.NET offers a smaller set of events in comparison to a totally client-based event system. Events that occur very frequently,

More information

CP3343 Computer Science Project (Year) Technical Report Document. Mr Stephen Garner

CP3343 Computer Science Project (Year) Technical Report Document. Mr Stephen Garner CP3343 Computer Science Project (Year) Technical Report Document Mr Stephen Garner Colin Hopson 0482647 Wednesday 23 rd April 2008 i Contents 1 Introduction... 1 2 The Program Listing... 1 2.1 ASP.Net

More information

3 Customer records. Chapter 3: Customer records 57

3 Customer records. Chapter 3: Customer records 57 Chapter 3: Customer records 57 3 Customer records In this program we will investigate how records in a database can be displayed on a web page, and how new records can be entered on a web page and uploaded

More information

Chapter 2 How to develop a one-page web application

Chapter 2 How to develop a one-page web application Chapter 2 How to develop a one-page web application Murach's ASP.NET 4.5/C#, C2 2013, Mike Murach & Associates, Inc. Slide 1 The aspx for a RequiredFieldValidator control

More information

Insert Data into Table using C# Code

Insert Data into Table using C# Code Insert Data into Table using C# Code CREATE TABLE [registration]( [roll_no] [int] NULL, [name] [varchar](50), [class] [varchar](50), [sex] [varchar](50), [email] [varchar](50))

More information

BİLGİLERİN GRIDVIEW İÇERİSİNDE EKLENMESİ, DÜZENLENMESİ VE SİLİNMESİ

BİLGİLERİN GRIDVIEW İÇERİSİNDE EKLENMESİ, DÜZENLENMESİ VE SİLİNMESİ BİLGİLERİN GRIDVIEW İÇERİSİNDE EKLENMESİ, DÜZENLENMESİ VE SİLİNMESİ default.aspx

More information

CST272 Getting Started Page 1

CST272 Getting Started Page 1 CST272 Getting Started Page 1 1 2 3 5 6 8 10 Introduction to ASP.NET and C# CST272 ASP.NET ASP.NET Server Controls (Page 1) Server controls can be Buttons, TextBoxes, etc. In the source code, ASP.NET controls

More information

ASP.NET - MULTI THREADING

ASP.NET - MULTI THREADING ASP.NET - MULTI THREADING http://www.tutorialspoint.com/asp.net/asp.net_multi_threading.htm Copyright tutorialspoint.com A thread is defined as the execution path of a program. Each thread defines a unique

More information

Create a cool image gallery using CSS visibility and positioning property

Create a cool image gallery using CSS visibility and positioning property GRC 275 A8 Create a cool image gallery using CSS visibility and positioning property 1. Create a cool image gallery, having thumbnails which when moused over display larger images 2. Gallery must provide

More information

What is ASP.NET? ASP.NET 2.0

What is ASP.NET? ASP.NET 2.0 What is ASP.NET? ASP.NET 2.0 is the current version of ASP.NET, Microsoft s powerful technology for creating dynamic Web content. is one of the key technologies of Microsoft's.NET Framework (which is both

More information

Web Forms ASP.NET. 2/12/2018 EC512 - Prof. Skinner 1

Web Forms ASP.NET. 2/12/2018 EC512 - Prof. Skinner 1 Web Forms ASP.NET 2/12/2018 EC512 - Prof. Skinner 1 Active Server Pages (.asp) Used before ASP.NET and may still be in use. Merges the HTML with scripting on the server. Easier than CGI. Performance is

More information

Chapter 13: An Example Web Service Client

Chapter 13: An Example Web Service Client page 1 Chapter 13: An Example Web Service Client In this chapter, we are going to build a client web application that uses a free web service called Terraserver. Terraserver is a site run by Microsoft

More information

Information Systems Engineering. Presenting data in web pages Using ASP.NET

Information Systems Engineering. Presenting data in web pages Using ASP.NET Information Systems Engineering Presenting data in web pages Using ASP.NET 1 HTML and web pages URL Request HTTP GET Response Rendering.html files Browser ..

More information

8 Library loan system

8 Library loan system Chapter 8: Library loan system 153 8 Library loan system In previous programs in this book, we have taken a traditional procedural approach in transferring data directly between web pages and the ASP database.

More information

Arena Development 101 / 102 Courses # A280, A281 IMPORTANT: You must have your development environment set up for this class

Arena Development 101 / 102 Courses # A280, A281 IMPORTANT: You must have your development environment set up for this class Arena Development 101 / 102 Courses # A280, A281 IMPORTANT: You must have your development environment set up for this class Presented by: Jeff Maddox Director of Platform Integrations, Ministry Brands

More information

Unit-4 Working with Master page and Themes

Unit-4 Working with Master page and Themes MASTER PAGES Master pages allow you to create a consistent look and behavior for all the pages in web application. A master page provides a template for other pages, with shared layout and functionality.

More information

Employee Attendance System module using ASP.NET (C#)

Employee Attendance System module using ASP.NET (C#) Employee Attendance System module using ASP.NET (C#) Home.aspx DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

More information

INTRANET. EXTRANET. PORTAL.

INTRANET. EXTRANET. PORTAL. Intranet DASHBOARD API Getting Started Guide Version 6 Contents 1. INTRODUCTION TO THE API... 3 Overview... 3 Further Information... 4 Disclaimer... 4 2. GETTING STARTED... 5 Creating an Application within

More information

Module 2: Using Master Pages

Module 2: Using Master Pages Module 2: Using Master Pages Contents Overview 1 Lesson: Advantages of Using Master Pages 2 Lesson: Writing Master and Content Pages 9 Lesson: Writing Nested Master Pages 21 Lesson: Programming Master

More information

INTRODUCTION & IMPLEMENTATION OF ASP.NET

INTRODUCTION & IMPLEMENTATION OF ASP.NET INTRODUCTION & IMPLEMENTATION OF ASP.NET CONTENTS I. Introduction to ASP.NET 1. Difference between ASP and ASP.NET 2. Introduction to IIS 3. What is Web Application? Why is it used? II. Implementation

More information

TRAINING GUIDE. Rebranding Lucity Web

TRAINING GUIDE. Rebranding Lucity Web TRAINING GUIDE Rebranding Lucity Web Rebranding Lucity Web Applications In this booklet, we ll show how to make the Lucity web applications your own by matching your agency s style. Table of Contents Web

More information

Caso de Estudio: Parte II. Diseño e implementación de. Integración de Sistemas. aplicaciones Web con.net

Caso de Estudio: Parte II. Diseño e implementación de. Integración de Sistemas. aplicaciones Web con.net Caso de Estudio: Diseño e Implementación de la Capa Web de MiniBank Integración de Sistemas Parte II Diseño e implementación de Parte II. Diseño e implementación de aplicaciones Web con.net Introducción

More information

Web Programming Paper Solution (Chapter wise)

Web Programming Paper Solution (Chapter wise) .Net.net code to insert new record in database using C#. Database name: College.accdb Table name: students Table structure: std_id number std_name text std_age number Table content (before insert): 2 abcd

More information

How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample.

How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample. How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample. Author: Carlos Kassab Date: July/24/2006 First install BOBS(BaaN Ole Broker Server), you

More information

XML with.net: Introduction

XML with.net: Introduction XML with.net: Introduction Extensible Markup Language (XML) strores and transports data. If we use a XML file to store the data then we can do operations with the XML file directly without using the database.

More information

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS CSS Overview Part I: Portraying the Internet as a collection of online information systems Part II: Design a website using HTML/XHTML & CSS XHTML validation What is wrong?

More information

The true beginning of our end. William Shakespeare, A Midsummer Night s Dream

The true beginning of our end. William Shakespeare, A Midsummer Night s Dream 1 Chapter INTRODUCING ASP.NET 2.0 The true beginning of our end. William Shakespeare, A Midsummer Night s Dream The end goal of this book is to teach and guide the reader through the increasingly large

More information

Introduction & Controls. M.Madadyar.

Introduction & Controls. M.Madadyar. Introduction & Controls M.Madadyar. htt://www.students.madadyar.com ASP.NET Runtime Comilation and Execution default.asx Which language? C# Visual Basic.NET C# comiler Visual Basic.NET comiler JIT comiler

More information

Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

Page Language=C# AutoEventWireup=true CodeFile=Default.aspx.cs Inherits=_Default %> در این مقاله قصد داریم با استفاده از Ajax کاربر یک پیام را بدون الگین شدن و با استفاده از IP بتواند الیک و یا دیس الیک کند را در ASPآموزش دهیم. برای شروع یک بانک اطالعاتی به نام Test که حاوی دو جدول به

More information

CST141 ASP.NET Database Page 1

CST141 ASP.NET Database Page 1 CST141 ASP.NET Database Page 1 1 2 3 4 5 8 ASP.NET Database CST242 Database A database (the data) A computer filing system I.e. Payroll, personnel, order entry, billing, accounts receivable and payable,

More information

In the previous chapter we created a web site with images programmed into HTML page code using commands such as: <img src="images/train.

In the previous chapter we created a web site with images programmed into HTML page code using commands such as: <img src=images/train. Chapter 6: Mountain Bike Club 113 6 Mountain Bike Club In the previous chapter we created a web site with images programmed into HTML page code using commands such as: In

More information

ACTIVE SERVER PAGES.NET 344 Module 5 Programming web applications with ASP.NET Writing HTML pages and forms Maintaining consistency with master pages Designing pages with ASP.NET controls Styling sites

More information

Web Forms Part I HTML. Instructor: Dr. Wei Ding Fall Instructor: Wei Ding. CS 437/637 Database-Backed Web Sites and Web Services

Web Forms Part I HTML. Instructor: Dr. Wei Ding Fall Instructor: Wei Ding. CS 437/637 Database-Backed Web Sites and Web Services Web Forms Part I Instructor: Dr. Wei Ding Fall 2009 1 HTML Instructor: Wei Ding 2 Getting Started: How does the WWW work? All the computers uses a communication standard called HTTP. Web information is

More information

Dynamic Web Programming BUILDING WEB APPLICATIONS USING ASP.NET, AJAX AND JAVASCRIPT

Dynamic Web Programming BUILDING WEB APPLICATIONS USING ASP.NET, AJAX AND JAVASCRIPT Dynamic Web Programming BUILDING WEB APPLICATIONS USING ASP.NET, AJAX AND JAVASCRIPT AGENDA 3. Advanced C# Programming 3.1 Events in ASP.NET 3.2 Programming C# Methods 4. ASP.NET Web Forms 4.1 Page Processing

More information

Preparing Students for MTA Certification MICROSOFT TECHNOLOGY ASSOCIATE. Exam Review Labs. EXAM Web Development Fundamentals

Preparing Students for MTA Certification MICROSOFT TECHNOLOGY ASSOCIATE. Exam Review Labs. EXAM Web Development Fundamentals Preparing Students for MTA Certification MICROSOFT TECHNOLOGY ASSOCIATE Exam Review Labs EXAM 98-363 Web Development Fundamentals TABLE OF CONTENTS Student Activity 1.1... 2 Student Activity 1.2... 3 Student

More information

Metastorm BPM Release 7.6

Metastorm BPM Release 7.6 Metastorm BPM Release 7.6 Web Client ASP.NET Web Parts Developer Guide May 2008 Metastorm, Inc. email: inquiries@metastorm.com http://www.metastorm.com Copyrights and Trademarks 1996-2008 Metastorm, Inc.

More information

MOSS2007 Write your own custom authentication provider (Part 4)

MOSS2007 Write your own custom authentication provider (Part 4) MOSS2007 Write your own custom authentication provider (Part 4) So in the last few posts we have created a member and role provider and configured MOSS2007 to use this for authentication. Now we will create

More information

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init Option Strict On Imports System.Drawing.Imaging Imports System.Drawing Imports System Imports System.Collections Imports System.Configuration Imports System.Data Imports System.IO Imports System.Web Imports

More information

Arena: Edit External Web Templates (Course #A217)

Arena: Edit External Web Templates (Course #A217) Arena: Edit External Web Templates (Course #A217) Presented by: Alex Nicoletti Arena Product Owner 2017 Shelby Systems, Inc. Other brand and product names are trademarks or registered trademarks of the

More information

Chapter 9. Web Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 9. Web Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 9 Web Applications McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Chapter Objectives - 1 Explain the functions of the server and the client in Web programming Create a Web

More information

LINQ as Language Extensions

LINQ as Language Extensions (Language Integrated Query) The main Topics in this lecture are: What is LINQ? Main Advantages of LINQ. Working with LINQ in ASP.Net Introduction: Suppose you are writing an application using.net. Chances

More information

Using ASP.NET Code-Behind Without Visual Studio.NET

Using ASP.NET Code-Behind Without Visual Studio.NET Pá gina 1 de 8 QUICK TIP: Using " in your Strings Using ASP.NET Code-Behind Without Visual Studio.NET Home News Samples Forum * Articles Resources Lessons Links Search Please visit our Partners by John

More information

Naresh Information Technologies

Naresh Information Technologies Naresh Information Technologies Server-side technology ASP.NET Web Forms & Web Services Windows Form: Windows User Interface ADO.NET: Data & XML.NET Framework Base Class Library Common Language Runtime

More information

Developing User Controls in EPiServer

Developing User Controls in EPiServer Developing User Controls in EPiServer Abstract It is recommended that developers building Web sites based on EPiServer create their own user controls with links to base classes in EPiServer. This white

More information

Activating AspxCodeGen 4.0

Activating AspxCodeGen 4.0 Activating AspxCodeGen 4.0 The first time you open AspxCodeGen 4 Professional Plus edition you will be presented with an activation form as shown in Figure 1. You will not be shown the activation form

More information

COOKBOOK Creating an Order Form

COOKBOOK Creating an Order Form 2010 COOKBOOK Creating an Order Form Table of Contents Understanding the Project... 2 Table Relationships... 2 Objective... 4 Sample... 4 Implementation... 4 Generate Northwind Sample... 5 Order Form Page...

More information

3-tier Architecture Step by step Exercises Hans-Petter Halvorsen

3-tier Architecture Step by step Exercises Hans-Petter Halvorsen https://www.halvorsen.blog 3-tier Architecture Step by step Exercises Hans-Petter Halvorsen Software Architecture 3-Tier: A way to structure your code into logical parts. Different devices or software

More information

Dr.Qadri Hamarsheh. Overview of ASP.NET. Advanced Programming Language (630501) Fall 2011/2012 Lectures Notes # 17. Data Binding.

Dr.Qadri Hamarsheh. Overview of ASP.NET. Advanced Programming Language (630501) Fall 2011/2012 Lectures Notes # 17. Data Binding. Advanced Programming Language (630501) Fall 2011/2012 Lectures Notes # 17 Data Binding Outline of the Lecture Code- Behind Handling Events Data Binding (Using Custom Class and ArrayList class) Code-Behind

More information

Lab 9: Creating Personalizable applications using Web Parts

Lab 9: Creating Personalizable applications using Web Parts Lab 9: Creating Personalizable applications using Web Parts Estimated time to complete this lab: 45 minutes Web Parts is a framework for building highly customizable portalstyle pages. You compose Web

More information

Implementing a chat button on TECHNICAL PAPER

Implementing a chat button on TECHNICAL PAPER Implementing a chat button on TECHNICAL PAPER Contents 1 Adding a Live Guide chat button to your Facebook page... 3 1.1 Make the chat button code accessible from your web server... 3 1.2 Create a Facebook

More information

ASP.net. Microsoft. Getting Started with. protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable();

ASP.net. Microsoft. Getting Started with. protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable(); Getting Started with protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable(); string connectionstring = System.Configuration.ConfigurationManager.ConnectionStrings ["default"].connectionstring;!

More information

Building Web Sites Using the EPiServer Content Framework

Building Web Sites Using the EPiServer Content Framework Building Web Sites Using the EPiServer Content Framework Product version: 4.60 Document version: 1.0 Document creation date: 28-03-2006 Purpose A major part in the creation of a Web site using EPiServer

More information

Programming Microsoft Dynamics CRM 4.0 Sample Chapter: Developing Offline Solutions

Programming Microsoft Dynamics CRM 4.0 Sample Chapter: Developing Offline Solutions Programming Microsoft Dynamics CRM 4.0 Sample Chapter: Developing Offline Solutions This sample chapter is from the book Programming Microsoft Dynamics CRM 4.0 co-authored by Jim Steger, Mike Snyder, Brad

More information

ASP.NET 2.0 FileUpload Server Control

ASP.NET 2.0 FileUpload Server Control ASP.NET 2.0 FileUpload Server Control Bill Evjen September 12, 2006 http://www.codeguru.com/csharp/sample_chapter/article.php/c12593 3/ In ASP.NET 1.0/1.1, you could upload files using the HTML FileUpload

More information

What is XHTML? XHTML is the language used to create and organize a web page:

What is XHTML? XHTML is the language used to create and organize a web page: XHTML Basics What is XHTML? XHTML is the language used to create and organize a web page: XHTML is newer than, but built upon, the original HTML (HyperText Markup Language) platform. XHTML has stricter

More information

Syncfusion Report Platform. Version - v Release Date - March 22, 2017

Syncfusion Report Platform. Version - v Release Date - March 22, 2017 Syncfusion Report Platform Version - v2.1.0.8 Release Date - March 22, 2017 Overview... 5 Key features... 5 Create a support incident... 5 System Requirements... 5 Report Server... 5 Hardware Requirements...

More information

Overview of ASP.NET and Web Forms

Overview of ASP.NET and Web Forms ASP.NET with Web Forms Objectives Learn about Web Forms Learn the Web controls that are built into Web Forms Build a Web Form Assumptions The following should be true for you to get the most out of this

More information

1Application and Page

1Application and Page 1Application and Page Frameworks WHAT S IN THIS CHAPTER? Choosing application location and page structure options Working with page directives, page events, and application folders Choosing compilation

More information

Generation of a simple web-application in the Microsoft Visual Studio 2008 with the use of Silverlight Viewer for Reporting Services 2008

Generation of a simple web-application in the Microsoft Visual Studio 2008 with the use of Silverlight Viewer for Reporting Services 2008 Generation of a simple web-application in the Microsoft Visual Studio 2008 with the use of Silverlight Viewer for Reporting Services 2008 Prerequisites.NET Framework 3.5 SP1/4.0 Silverlight v3 Silverlight

More information

Lab 4: ASP.NET 2.0 Membership, Login Controls, and Role Management

Lab 4: ASP.NET 2.0 Membership, Login Controls, and Role Management Lab 4: ASP.NET 2.0 Membership, Login Controls, and Role Management Forms authentication is a popular means of securing Internet applications. In ASP.NET s brand of forms authentication, you designate a

More information

质量更高服务更好 半年免费升级服务.

质量更高服务更好 半年免费升级服务. IT 认证电子书 质量更高服务更好 半年免费升级服务 http://www.itrenzheng.com Exam : 70-515 Title : TS: Web Applications Development with Microsoft.NET Framework 4 Version : Demo 1 / 13 1.You are implementing an ASP.NET application

More information

Master Pages :: Control ID Naming in Content Pages

Master Pages :: Control ID Naming in Content Pages Master Pages :: Control ID Naming in Content Pages Introduction All ASP.NET server controls include an ID property that uniquely identifies the control and is the means by which the control is programmatically

More information

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0 CSI 3140 WWW Structures, Techniques and Standards Markup Languages: XHTML 1.0 HTML Hello World! Document Type Declaration Document Instance Guy-Vincent Jourdan :: CSI 3140 :: based on Jeffrey C. Jackson

More information

Sequence and ASP.NET Applications

Sequence and ASP.NET Applications PNMsoft Knowledge Base Sequence Best Practices Sequence and ASP.NET Applications Decmeber 2013 Product Version 7.x 2013 PNMsoft All Rights Reserved This document, including any supporting materials, is

More information

EVALUATION COPY. ASP.NET Using C# Student Guide Revision 4.7. Unauthorized Reproduction or Distribution Prohibited. Object Innovations Course 4140

EVALUATION COPY. ASP.NET Using C# Student Guide Revision 4.7. Unauthorized Reproduction or Distribution Prohibited. Object Innovations Course 4140 ASP.NET Using C# Student Guide Revision 4.7 Object Innovations Course 4140 ASP.NET Using C# Rev. 4.7 Student Guide Information in this document is subject to change without notice. Companies, names and

More information

Dreamweaver: Portfolio Site

Dreamweaver: Portfolio Site Dreamweaver: Portfolio Site Part 3 - Dreamweaver: Developing the Portfolio Site (L043) Create a new Site in Dreamweaver: Site > New Site (name the site something like: Portfolio, or Portfolio_c7) Go to

More information

EPiServer Programmer's Reference

EPiServer Programmer's Reference EPiServer Programmer's Reference Product version: 4.60 Document version: 1.0 Document creation date: 23-03-2006 Purpose This programmer's reference is intended to be read by EPiServer developers as an

More information

XHTML & CSS CASCADING STYLE SHEETS

XHTML & CSS CASCADING STYLE SHEETS CASCADING STYLE SHEETS What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML XHTML is almost identical to HTML 4.01 XHTML is a stricter and cleaner version

More information

Controls are also used for structural jobs, like validation, data access, security, creating master pages, data manipulation.

Controls are also used for structural jobs, like validation, data access, security, creating master pages, data manipulation. 1 Unit IV: Web Forms Controls Controls Controls are small building blocks of the graphical user interface, which includes text boxes, buttons, check boxes, list boxes, labels and numerous other tools,

More information

Websites WHAT YOU WILL LEARN IN THIS CHAPTER: WROX.COM CODE DOWNLOADS FOR THIS CHAPTER

Websites WHAT YOU WILL LEARN IN THIS CHAPTER: WROX.COM CODE DOWNLOADS FOR THIS CHAPTER 6Creating Consistent Looking Websites WHAT YOU WILL LEARN IN THIS CHAPTER: How to use master and content pages that enable you to define the global look and feel of a web page How to work with a centralized

More information

Web Site Development with HTML/JavaScrip

Web Site Development with HTML/JavaScrip Hands-On Web Site Development with HTML/JavaScrip Course Description This Hands-On Web programming course provides a thorough introduction to implementing a full-featured Web site on the Internet or corporate

More information

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

Actual4Test.  Actual4test - actual test exam dumps-pass for IT exams Actual4Test http://www.actual4test.com Actual4test - actual test exam dumps-pass for IT exams Exam : 70-515-VB Title : Web Applications Development with Microsoft VB.NET Framework 4 Practice Test Vendors

More information

STEP 1: CREATING THE DATABASE

STEP 1: CREATING THE DATABASE Date: 18/02/2013 Procedure: Creating a simple registration form in ASP.NET (Programming) Source: LINK Permalink: LINK Created by: HeelpBook Staff Document Version: 1.0 CREATING A SIMPLE REGISTRATION FORM

More information

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0 WEB TECHNOLOGIES A COMPUTER SCIENCE PERSPECTIVE CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0 Modified by Ahmed Sallam Based on original slides by Jeffrey C. Jackson reserved. 0-13-185603-0 HTML HELLO WORLD! Document

More information

Internetanwendungstechnik. Microsoft.NET. Gero Mühl

Internetanwendungstechnik. Microsoft.NET. Gero Mühl Internetanwendungstechnik Microsoft.NET Gero Mühl Technische Universität Berlin Fakultät IV Elektrotechnik und Informatik Kommunikations- und Betriebssysteme (KBS) Einsteinufer 17, Sekr. EN6, 10587 Berlin

More information

Assignments (4) Assessment as per Schedule (2)

Assignments (4) Assessment as per Schedule (2) Specification (6) Readability (4) Assignments (4) Assessment as per Schedule (2) Oral (4) Total (20) Sign of Faculty Assignment No. 02 Date of Performance:. Title: To apply various CSS properties like

More information

Lab 4 CSS CISC1600, Spring 2012

Lab 4 CSS CISC1600, Spring 2012 Lab 4 CSS CISC1600, Spring 2012 Part 1 Introduction 1.1 Cascading Style Sheets or CSS files provide a way to control the look and feel of your web page that is more convenient, more flexible and more comprehensive

More information

Unit-2 ASP.NET Server Controls

Unit-2 ASP.NET Server Controls INTRODUCTION TO HTML CONTROLS, SERVER CONTROLS AND VALIDATION CONTROLS There are three types of the controls: HTML Controls Web Server Controls Validation Controls HTML Controls HTML Forms are required

More information

COPYRIGHTED MATERIAL WHAT YOU WILL LEARN IN THIS CHAPTER:

COPYRIGHTED MATERIAL WHAT YOU WILL LEARN IN THIS CHAPTER: 1 WHAT YOU WILL LEARN IN THIS CHAPTER: How to acquire and install Visual Web Developer 2010 Express and Visual Studio 2010 How to create your first web site with Visual Web Developer How an ASP.NET page

More information

Web Forms User Security and Administration

Web Forms User Security and Administration Chapter 7 Web Forms User Security and Administration In this chapter: Administering an ASP.NET 2.0 Site...................................... 238 Provider Configuration................................................

More information

DevEdit v4.0 Setup Guide (ASP.Net)

DevEdit v4.0 Setup Guide (ASP.Net) DevEdit v4.0 Setup Guide (ASP.Net) http://www.devedit.com Table of Contents Table of Contents...1 Legal Disclaimer...2 Getting Started...3 Web Server Requirements...3 Uploading the Files...3 Setting up

More information

Chapter. Web Applications

Chapter. Web Applications Chapter Web Applications 144 Essential Visual Basic.NET fast Introduction Earlier versions of Visual Basic were excellent for creating applications which ran on a Windows PC, but increasingly there is

More information

Part I: Grids, Editors, Navigation, and Controls. Chapter 1: Programming with the ASPxGridView. Chapter 2: Advanced ASPxGridView Computing

Part I: Grids, Editors, Navigation, and Controls. Chapter 1: Programming with the ASPxGridView. Chapter 2: Advanced ASPxGridView Computing Part I: Grids, Editors, Navigation, and Controls Chapter 1: Programming with the ASPxGridView Chapter 2: Advanced ASPxGridView Computing Chapter 3: Using the ASPxTreeList, ASPxDataView, and ASPxNewsControl

More information

LIPNET OUTBOUND API FORMS DOCUMENTATION

LIPNET OUTBOUND API FORMS DOCUMENTATION LIPNET OUTBOUND API FORMS DOCUMENTATION LEGAL INAKE PROFESSIONALS 2018-03-0926 Contents Description... 2 Requirements:... 2 General Information:... 2 Request/Response Information:... 2 Service Endpoints...

More information

Part A Short Answer (50 marks)

Part A Short Answer (50 marks) Part A Short Answer (50 marks) NOTE: Answers for Part A should be no more than 3-4 sentences long. 1. (5 marks) What is the purpose of HTML? What is the purpose of a DTD? How do HTML and DTDs relate to

More information

What You Need to Use this Book

What You Need to Use this Book What You Need to Use this Book The following is the list of recommended system requirements for running the code in this book: Windows 2000 Professional or Windows XP Professional with IIS installed Visual

More information

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21 Table of Contents Chapter 1 Getting Started with HTML 5 1 Introduction to HTML 5... 2 New API... 2 New Structure... 3 New Markup Elements and Attributes... 3 New Form Elements and Attributes... 4 Geolocation...

More information

Webnodes Developers Manual

Webnodes Developers Manual Webnodes Webnodes Developers Manual Framework programming manual Administrator 1/1/2010 Webnodes Developers manual Webnodes Overview... 5 Definitions and meanings of words... 5 Introduction... 5 Key components...

More information

Getting Started with ASP.NET 3.5

Getting Started with ASP.NET 3.5 87593c01.qxd:WroxPro 1/25/08 9:05 AM Page 1 1 Getting Started with ASP.NET 3.5 Ever since the first release of the.net Framework 1.0 in early 2002, Microsoft has put a lot of effort and development time

More information

Creating Web Applications Using ASP.NET 2.0

Creating Web Applications Using ASP.NET 2.0 12 Creating Web Applications Using ASP.NET 2.0 12 Chapter CXXXX 39147 Page 1 07/14/06--JHR After studying Chapter 12, you should be able to: Define the terms used when talking about the Web Create a Web

More information

COPYRIGHTED MATERIAL. Application and Page Frameworks. Application Location Options

COPYRIGHTED MATERIAL. Application and Page Frameworks. Application Location Options Evjen c01.tex V2-01/28/2008 12:27pm Page 1 Application and Page Frameworks The evolution of ASP.NET continues! The progression from Active Server Pages 3.0 to ASP.NET 1.0 was revolutionary, to say the

More information