ASP.NET 2.0 Chapter 5 Advanced Web Controls. ASP.NET 2.0, Third Edition2 Objectives.

Slides:



Advertisements
Similar presentations
The Web Wizards Guide to Freeware/Shareware Chapter Four Essential Tools for Web Page Authors.
Advertisements

XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Microsoft Excel 2003 Illustrated Complete Excel Files and Incorporating Web Information Sharing.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 13: Administering Web Resources.
1 Chapter 12 Working With Access 2000 on the Internet.
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
XP Adding Hypertext Links to a Web Page. XP Objectives Create hypertext links between elements within a Web page Create hypertext links between Web pages.
Hands-On Microsoft Windows Server 2003 Administration Chapter 5 Administering File Resources.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
ASP.NET 2.0 Chapter 6 Securing the ASP.NET Application.
Module 6 Windows 2000 Professional 6.1 Installation 6.2 Administration/User Interface 6.3 User Accounts 6.4 Managing the File System 6.5 Services.
Chapter 2: Application layer  2.1 Web, HTTP and HTML (We will continue…)  2.2 FTP  2.3 SMTP 9/22/2009 Lecture 7, MAT 279, Fall
Browser and Basics Tutorial 1. Learn about Web browser software and Web pages The Web is a collection of files that reside on computers, called.
Hands-On Microsoft Windows Server 2008 Chapter 8 Managing Windows Server 2008 Network Services.
Sharepoint Portal Server Basics. Introduction Sharepoint server belongs to Microsoft family of servers Integrated suite of server capabilities Hosted.
Exchange 2010 Recipient and Mailbox Management IT:Network:Applications.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Configuring a Web Server. Overview Overview of IIS Preparing for an IIS Installation Installing IIS Configuring a Web Site Administering IIS Troubleshooting.
Session 11: Security with ASP.NET
1 Web Server Administration Chapter 9 Extending the Web Environment.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
SMTP PROTOCOL CONFIGURATION AND MANAGEMENT Chapter 8.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
MCTS Guide to Microsoft Windows Server 2008 Applications Infrastructure Configuration (Exam # ) Chapter Six Configuring Windows Server 2008 Web Services,
MCSE Guide to Microsoft Exchange Server 2003 Administration Chapter Four Configuring Outlook and Outlook Web Access.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
| | Tel: | | Computer Training & Personal Development Microsoft Office PowerPoint 2007 Expert.
Introducing Dreamweaver MX 2004
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
Windows Internet Explorer 9 Chapter 1 Introduction to Internet Explorer.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
CIM6400 CTNW (04/05) 1 CIM6400 CTNW Lesson 6 – More on Windows 2000.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Microsoft Internet Information Services 5.0 (IIS) By: Edik Magardomyan Fozi Abdurhman Bassem Albaiady Vince Serobyan.
Creating Web Applications Using ASP.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Windows Tutorial 4 Working with the Internet and
HTML, XHTML, and CSS Sixth Edition Chapter 1 Introduction to HTML, XHTML, and CSS.
The Internet 8th Edition Tutorial 2 Basic Communication on the Internet: .
Internet Information Server © N. Ganesan, Ph.D. All Rights Reserved.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
MCSE Guide to Microsoft Exchange Server 2003 Administration Chapter Two Installing and Configuring Exchange Server 2003.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
IS 4506 Establishing Microsoft SMTP Service.  Overview Introduction to Microsoft SMTP Service SMTP Service features SMTP administration interface SMTP.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
1 Chapter Overview Creating Web Sites and FTP Sites Creating Virtual Directories Managing Site Security Troubleshooting IIS.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
New Generation University Faculty of Computer Science Chapter Five: File Uploaded and Ad Rotate Lecturer: Mukhtar Mohamed Ali “Hakaale”
Web Browsing *TAKE NOTES*. Millions of people browse the Web every day for research, shopping, job duties and entertainment. Installing a web browser.
XP New Perspectives on Microsoft Windows XP Tutorial 5 1 Microsoft Windows XP Bringing the World Wide Web to the Desktop Tutorial 5.
MCSE Guide to Microsoft Exchange Server 2003 Administration Chapter Three Managing Recipients.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
Linux Operations and Administration Chapter Twelve Configuring a Mail Server.
MCSE Guide to Microsoft Exchange Server 2003 Administration Chapter One Introduction to Exchange Server 2003.
Week-2 (Lecture-1) An electronic message sent from one computer to another. contains account i.e. How does.
Tutorial 1 Getting Started with Adobe Dreamweaver CS5.
IIS.
Chapter 23 – ASP.NET Outline 23.1 Introduction NET Overview
Configuring Internet-related services
Presentation transcript:

ASP.NET 2.0 Chapter 5 Advanced Web Controls

ASP.NET 2.0, Third Edition2 Objectives

ASP.NET 2.0, Third Edition3 AdRotator Contrtol The AdRotator control allows you to display a banner ad on a web page The advertisement file, also known as the rotation file, is an XML document that stores the ad information –Inside this file is indicated the amount of time each ad is seen on the web page The banner ad is a hyperlinked image

ASP.NET 2.0, Third Edition4 The Role of the Advertisement File The advertisement file contains: –Information to create the HTML image tag to insert the image into the web page –Information that creates the hyperlink using an anchor tag Each time the page is displayed, the AdRotator class retrieves a different image and hyperlink Contained within the Advertisements node are one or more Ad Elements –Ad elements contain individual properties for the Ad (i.e. location, URL, alternate text, height, and width)

ASP.NET 2.0, Third Edition5 The Calender Control The Calendar control is used to insert and configure an interactive calendar within the web page The calendar can be used to show event data such as the location and time of the event The Calendar control is created by the calendar class, System.WebControls.Calendar To insert the calendar into the web page: –

ASP.NET 2.0, Third Edition6 Supported Properties, Methods, and Events A style can be assigned to the calendar using a class defined in the CSSClass property There are various Calendar control style properties –(i.e. DayHeaderStyle, Title Style, TodayDayStyle) Other properties allow the modification of the Calendar control’s appearance –(i.e. ShowDayHeader property and ShowGridLines property) You can write different event handlers to intercept events and execute your own custom code

ASP.NET 2.0, Third Edition7 Using the FileUpload Control The FileUpload control allows you to upload a file to a web server The file upload capability is completely built into the ASP.NET runtime and available to all ASP.NET applications without third-party file upload components The key to building an upload feature into your web site is the FileUpload control, which is a Web control –The FileUpload control class is the System.Web.UI.WebControls.FileUpload

ASP.NET 2.0, Third Edition8 Uploading a File with FileUpload Control The FileUpload control, created with the tag, allows users to browse their file system and locate their file You always should verify the users’ credentials before allowing them to upload the file The FileUpload control contains several properties that you may access before you upload the file: –HasFile Property –FileName Property –FileBytes Property –FileContent Property

ASP.NET 2.0, Third Edition9 Sending from the Web Pages Often you will want to generate a customized automated reply that uses form data To send outbound from a web page, you must use an server, along with an object or application, to communicate with the e- mail server

ASP.NET 2.0, Third Edition10 Security and Privacy Issues Related to ing is the process of sending messages through servers A major issue related to is spam –Spam is unauthorized delivery of messages –Because there is virtually no cost to deliver spam, it is commonly used as a marketing tool to attract customers –Some spam poses as legitimate and uses hyperlinks to lure end users onto web sites that download viruses and steal information such as passwords, bank account numbers, and credit card information

ASP.NET 2.0, Third Edition11 The Role of the Server Web developers must ensure that their web applications do not allow unauthorized users to send through their web application or server The server, known as the SMTP server, is included when you install the IIS web server Simple Mail Transfer Protocol (SMTP) is a protocol, or set of rules, used to transfer mail between servers –The SMTP server contains several folders (i.e. Pickup, Queue, Badmail, Drop Route, & Mailbox)

ASP.NET 2.0, Third Edition12 Configuring the Server Microsoft Management Console (MMC) is the main interface to the administrative programs such as IIS and SMTP –Messages property page – configures the size of the message and the session size –Delivery property page – configures how the message is delivered –Outbound Security tab – configures a different user account to send mail messages; you can use the anonymous account, or authenticate the user with basic authentication or Windows authentication –Outbound Connections tab – limits the number of outbound messages, the time-out property, and the number of connections per domain –Advanced tab – configures which servers can access the Default SMTPVirtual Server to send or relay messages –Security tab – accesses and changes the SMTP settings

ASP.NET 2.0, Third Edition13 CDONTS and Objects CDONTS is a component provided with the SMTP server to allow third-party applications, such as ASP.NET, to communicate with the SMTP server –CDONTS and SMTP service are only available with Windows Server and Windows XP Professional You will use the objects to create and place your message in the Pickup folder The receiving mail server may accept or reject the message –Commonly rejected because the user’s mailbox is full or the user is not a valid user account

ASP.NET 2.0, Third Edition14 Storing and Retrieving Data in the Web Server’s File System There are several classes and objects within the System.IO namespace that allow you to interact with the web server’s file system The System.IO namespace contains several classes, such as File, FileStream, and Directory, that allow you to create, read, and delete files –FileSystemInfo class is the base class for both the FileInfo class and the DirectoryInfo class –DirectoryInfo class allows you to obtain the properties of a directory and its subdirectories –FileInfo class allows you access to the Attribute properties of a file

ASP.NET 2.0, Third Edition15 Working with Directories and the DirectoryInfo Class

ASP.NET 2.0, Third Edition16 Working with Directories and the DirectoryInfo Class (continued)

ASP.NET 2.0, Third Edition17 Working with Directories and the DirectoryInfo Class (continued)

ASP.NET 2.0, Third Edition18 Creating and Deleting Directories with the DirectoryInfo Class

ASP.NET 2.0, Third Edition19 Creating and Deleting Directories with the DirectoryInfo Class (continued)

ASP.NET 2.0, Third Edition20 Security Issues Related to Building Web Applications Many times, company employees don’t know the possibilities or the implications of building web sites –You may need to provide them with suggestions on how to use and how to secure the web site As you design your web sites, you should know the following: –You can create a login form processed by ASP.NET for web applications. –JavaScripts run on the client and are not adequate for securing a web site –The login method needs to be combined with other security methods –Access is useful in situations such as displaying non-secure information because hackers can use password detection programs to hack into the file –An end user can right-click a graphic on your page and save the image locally

ASP.NET 2.0, Third Edition21 Summary ASP.NET controls enhance the user interface and increase interactivity within web pages. Examples of ASP.NET controls are the AdRotator control and the Calendar control. The AdRotator control allows you to display rotating banner ads. The banner contains a hyperlink, alternate text, and an image. If you do not specify the height and width, you can display images of varying sizes. –The advertisement file is an XML file that is used to store the ad information. The advertisement file can be edited with a text editor, such as Notepad, or an XML editor. The Calendar control displays an interactive calendar. You can use many properties to format the calendar. You can retrieve the value of the date that users click, or execute code when they click a particular date.

ASP.NET 2.0, Third Edition22 Summary (continued) The File Input control is an HTML Server control that allows you to browse your network to locate a file to upload file to a web server. The FileUpload control is a Web server control that also allows you to browse your network to locate a file to be uploaded to the web server. On the web server, you must retrieve the file name. You can change the file name or path on the server in the code behind the page. The SaveAs method saves the file to the web server. The SMTP server is the default mail service that is installed with the Internet Information Service web server. The mail server’s default root directory is C:\Inetpub\MailRoot\. The Pickup folder is used to store outgoing mail messages. Mail that cannot be delivered is sent to the BadMail directory. You can configure the SMTP server via the property sheets in the MMC application.

Summary (continued) The System.IO namespace provides you with classes that interact with the web server’s file system. It contains several classes such as File, FileStream, and Directory, which allow you to create, read, and delete files. The newer classes, named DirectoryInfo and FileInfo, are more flexible and provide easier access to the file system. ASP.NET 2.0, Third Edition23