1 / 16

Programming In C# for the Web

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

ashanti
Download Presentation

Programming In C# for the Web

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Programming In C# for the Web By Andrew Cumming, Edinburgh Napier University, UK

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

  7. Visual Studio Starting a new Project with Visual Studio Lecture 1

  8. ASP.NET Web Application Lecture 1

  9. The design Surface Lecture 1

  10. WYSIWYG Lecture 1

  11. 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

  12. 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

  13. CSS from Visual Studio Lecture 1

  14. Tutorial One Lecture 1

  15. 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

  16. 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

More Related