160 likes | 339 Views
Programming In C# for the Web. By Andrew Cumming, Edinburgh Napier University, UK. Lecture Plan. Web programming with C# Lecture 1: C# in context Introducing C#, .Net , Hello World Using the editor, Layout, CSS Lecture 2: Generating Content
E N D
Programming In C# for the Web By Andrew Cumming, Edinburgh Napier University, UK
Lecture Plan • Web programming with C# • Lecture 1: C# in context • Introducing C#, .Net, Hello World • Using the editor, Layout, CSS • Lecture 2: Generating Content • Creating components with code, tables, applying style • Lecture 3: Handling User Interaction • Callback mechanisms, OnClick, OnLoad • Lecture 4: Handling Data • Reading text files, converting types, formatting output • Lecture 5: Review Lecture 1: Introduction
Lecture Plan • Lecture 6: Introducing the Coursework • The requirements, possible approaches • Lecture 7: Handling data • Reading from a database. Writing to a database. • Lecture 8: JavaScript • Client-side processing • Lecture 9: Review • Lecture 10: May Day Holiday Lecture 1
Tutorial Plan • Tutorial 1: Hello World • Tutorial 2: Currency Calculator • Tutorial 3: Style • Tutorial 4: World Tables • Tutorial 5: Multiple Choice Quiz • Tutorial 6-8: Coursework, Airport Departures • Tutorials 9: Assessment Lecture 1
C# and Visual Studio • C# is the programming language • .Net is the “framework” of routines used by C# • Visual Basic also uses the .Net framework • Visual Studio is the development environment • IIS is the web server that executes the code • HTML is the target output, any browser may be used. Lecture 1
The C# Language • The C# language is a mainstream programming language. • Similar to Java. • It is currently the number one language for employment in the UK. • C# is compiled into an intermediate language which is executed by a virtual machine. Lecture 1
Visual Studio Starting a new Project with Visual Studio Lecture 1
ASP.NET Web Application Lecture 1
The design Surface Lecture 1
WYSIWYG Lecture 1
Identifying Items • Solution Explorer • This shows the files that make up a solution • The Toolbox • You can double click or drag to add components. • The Properties window • You can change aspects of a component • The “Go” button • AutoHide “Pin” Lecture 1
CSS • CSS style can be applied in code or from an external file. • A typical CSS rule includes a pattern to match and an instruction Lecture 1
CSS from Visual Studio Lecture 1
Tutorial One Lecture 1
Tomorrow • We will look at generating page elements. • We will see how we can build complicated structures and create a whole page. • We will see how elements in a predefined layout may be built in the editor then updated dynamically. Lecture 1
Summary • C# is a popular language. • C# is a general purpose language. • Visual Studio is an IDE • You can design web pages using Visual Studio • CSS may be used to apply styles to html Lecture 1