.NET Library Objects So far we have looked at the following objects in learning about ASP.NET: Controls Used to control the screen / interface and gather.

Slides:



Advertisements
Similar presentations
PowerPoint presentation of first 25 pages of instructional manual Edith Fabiyi Essentials of Internet Access.
Advertisements

File Transfer Protocol. FTP (File Transfer Protocol) is used to transfer programs or other information from one computer to another. This simple tool.
The Application Layer Chapter 7. Where are we now?
Chapter 1. What is computer fluency? The knowledge possessed by people who are able to navigate the digital world successfully NOT THIS.
ASP.NET Programming with C# and SQL Server First Edition
Implementing Application Protocols. Overview An application protocol facilitates communication between applications. For example, an client uses.
Review 5 Chapters 13, 14. What is software? Set of instructions to control computer operation.
Computer Networks,Internet,& SMTP Priyanka Daultani Department of Computer Science USF, San Francsico, CA.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
1 Chapter 20 — Creating Web Projects Microsoft Visual Basic.NET, Introduction to Programming.
By Godfrey Aziyo Department of LIS Telephone:
UNIT-V The MVC architecture and Struts Framework.
Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
Computer Concepts 2014 Chapter 7 The Web and .
NETWORK CENTRIC COMPUTING (With included EMBEDDED SYSTEMS)
Application Protocols: ELECTRONIC MAIL (SMTP, POP) CSNB534 Semester 2, 2007/2008 Asma Shakil.
Syllabus outcomes Describes and applies problem-solving processes when creating solutions Designs, produces and evaluates appropriate solutions.
Webmail. Agenda Why use webmail? Why use webmail? What is webmail What is webmail – basic » system MDA MDA MTA MTA MUA MUA »Protocol SMTP SMTP.
There are different types of translator. An Interpreter Interpreters translate one instruction at a time from a high level language into machine code every.
Student Learning Environment on the World Wide Web l CGI-programming in Perl for the connection of databases over the Internet. l Web authoring using Frontpage.
Operating Systems  By the end of this session, you will know: What an Operating System is. The functions it performs.
Software GCSE COMPUTING.
Standard Grade Computing System Software & Operating Systems.
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
Part 1. Persistent Data Web applications remember your setting by means of a database linked to the site.
Search on the internet the different ways for building a website, and choose which one bests suits you for what website you are doing.
How computer’s are linked together.
The Internet The internet is simply a worldwide computer network that uses standardised communication protocols to transmit and exchange data.
Thornbury U3A Computer Club – Mike Farquhar July 2014.
Hands-On Microsoft Windows Server Implementing Microsoft Internet Information Services Microsoft Internet Information Services (IIS) –Software included.
Electronic Commerce Server-Side Scripting Exercises MIS Spring 2006 Instructor: John Seydel, Ph.D.
Networking Relationships What is a computer network?
Learning Objective The students should be able to: a. state the definition of software b. state the usage of software c. list different types of software.
1.NET and XML Web Services A Primer for Network Administrators John Robbins Version 1.0 Copyright © 2002 Wintellect.
RUBRIC IP1 Ruben Botero Web Design III. The different approaches to accessing data in a database through client-side scripting languages. – On the client.
I Power Higher Computing Software Development Development Languages and Environments.
MOSS Design Presentation -Senior Project-. MOSS MOSS Server System 1. MOSS Application 2. Server 3. Client SIU-E Code Cop System 1. SIU-E.
What is Programming? Computer programming is about telling the computer what it is we want it to do We tell the computer what we want it to do by sending.
Multimedia and Computers Introduction to Computers.
FTP Short for File Transfer Protocol, the protocol for exchanging files over the Internet.protocolfilesInternet works in the same way as HTTP for transferring.
PART 2 INTRODUCTION TO DYNAMIC WEB CONTENT AND PHP.
Intro to Web Services Dr. John P. Abraham UTPA. What are Web Services? Applications execute across multiple computers on a network.  The machine on which.
SOFTWARE. Software… Instructions that are stored electronically that tell the computer what to do.
Software. Introduction n A computer can’t do anything without a program of instructions. n A program is a set of instructions a computer carries out.
Microsoft Visual Basic 2015 CHAPTER ONE Introduction to Visual Basic 2015 Programming.
Chapter 1: Introduction to Computers and Programming.
 Computer hardware refers to the physical parts of a computer and related devices. Internal hardware devices include motherboards, hard drives,
JavaScript Invented 1995 Steve, Tony & Sharon. A Scripting Language (A scripting language is a lightweight programming language that supports the writing.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester December 2009.
Topic 2: Hardware and Software
3.1 Types of Servers.
3.1 Types of Servers.
Chapter 2 Client/Server Applications
Computing with C# and the .NET Framework
Some bits on how it works
3.1 Types of Servers.
CO6025 Advanced Programming
Web Development & Design Chapter 1, Sections 4, 5 & 6
Software Introduction
CIS16 Application Development – Programming with Visual Basic
Computer Networks,Internet,& SMTP
Information Technology Ms. Abeer Helwa
The Client Server Model
Internet Protocols IP: Internet Protocol
There are different types of translator.
The Client Server Model
introduction to computers
Client/Server and Peer to Peer
Presentation transcript:

.NET Library Objects So far we have looked at the following objects in learning about ASP.NET: Controls Used to control the screen / interface and gather input and display output. Variables Used to control the computers RAM and allow it to store data / perform calculations. Custom Objects Used by programmers to perform specialised tasks.

The.NET Library The.NET part of ASP.NET refers to a library of objects that allow you the programmer to perform a huge range of tasks System Input-Output Provides tools for file input and output Drawing Provides graphical drawing tools Web Provides tools for Internet interconnectivity Data Provides tools for accessing databases

We will look at two examples The mail message object Used to create and send s. The SMTP client object Used to control a mail server.

The Mail Message Object It may be found in the following part of the.NET framework… System.Net.Mail To create a mail message object we would use the following line of code… Dim myMessage As New System.Net.Mail.MailMessage(From, to, subject,body)

So let’s say we wanted to create the following …

We would use the following line of code… Dim myMessage As New System.Net.Mail.MailMessage “Hello John”, ”Hi this is a test!”)

The SMTP Client Object A mail server is a specialised computer that deals with the sending and receiving of messages DMUmail.cse.dmu.ac.uk Virginsmtp.ntlworld.co.uk Orangesmtp.wannadoo.co.uk Tiscalismtp.tiscali.co.uk

SMTP SMTP (Simple Mail Transfer Protocol) is the name of the software that send s. It runs on a named machine so we need to know the name of the machine in order to send s. The SMTP client is stored in : System.Net.Mail So to create a new SMTP client object we would use the following code... Dim Server As New System.Net.Mail.SmtpClient("name of server") E.g. Dim Server As New System.Net.Mail.SmtpClient("mail.cse.dmu.ac.uk")

Sending the Mail Message Dim myMessage As New System.Net.Mail.MailMessage “Hello John”, ”Hi this is a test!”) Dim Server As New System.Net.Mail.SmtpClient("mail.cse.dmu.ac.uk") Server.Send(myMessage)

Working Example To see all of this working we shall look at the code for the resend password page “resend.aspx”

What is an Object Again? “An object is a way of representing computer technology in such a way so that we may send it instructions and data.” Creating an and controlling a mail server are quite complex tasks, however “wrapping up” the complexity in objects means that we can perform this whole process in three lines of code.

Questions 1. Correct the following code...

Questions 2. Write down as many uses you can think of on the web for an object 3. The following is the declaration for another.NET library object: Dim MyFile As New System.IO.StreamReader("myfile.txt") This object is used to read data from a file stored on the hard disk, in this case “myfile.txt”

Questions Think about what methods and properties this object might use to manipulate the file so that we can read the data. Write a list of possible methods and properties. Where might we find information on the methods and properties for this type of object?