Presentation is loading. Please wait.

Presentation is loading. Please wait.

Svetlin Nakov Technical Trainer Software University

Similar presentations


Presentation on theme: "Svetlin Nakov Technical Trainer Software University"— Presentation transcript:

1 Svetlin Nakov Technical Trainer www.nakov.com Software University http://softuni.bg

2 Table of Contents 1.… 2.… 3.… 2

3

4 What is ASP.NET Server Control?  ASP.NET server controls  The simplest ASP.NET components  Wrap an HTML UI element, or more complex UI  Component-oriented programming model  Executed and rendered at the server side  Example of ASP.NET server controls:     … 4

5 5  The "C# Basics" course:  First steps in computer programming:  Compiler, IDE, variables, control-flow logic, console I/O, loops  Establish algorithmic thinking  Development of problems solving skills  Prepare for learning other languages and software technologies  Java, PHP, HTML, CSS, JavaScript, PHP  Databases & SQL, high-quality code  Web development technologies Sample Slide

6 6  Write a program that enters a positive integer number N from the console (1 ≤ N ≤ 100) and prints a new year tree of size N, following the examples below: C# Exam – Sample Problem N = 2 | * | * * | * ** | ** N = 3 | * | * * | * ** | ** ** | ** *** | *** N = 5 | * | * * | * ** | ** ** | ** *** | *** *** | *** **** | **** **** | **** ***** | ***** N = 1 | * | * N = 4 | * | * * | * ** | ** ** | ** *** | *** *** | *** **** | ****

7 7 C# Exam – Sample Solution static void Main() { int n = int.Parse(Console.ReadLine()); int n = int.Parse(Console.ReadLine()); for (int i = 0; i <= n; i++) for (int i = 0; i <= n; i++) { int asterisksCount = i; int asterisksCount = i; string asterisks = new string('*', asterisksCount); string asterisks = new string('*', asterisksCount); int spacesCount = n - asterisksCount; int spacesCount = n - asterisksCount; string spaces = new string(' ', spacesCount); string spaces = new string(' ', spacesCount); Console.Write(spaces); Console.Write(spaces); Console.Write(asterisks); Console.Write(asterisks); Console.Write(" | "); Console.Write(" | "); Console.Write(asterisks); Console.Write(asterisks); Console.WriteLine(spaces); Console.WriteLine(spaces); }}

8 Sample C# program: using System; class HelloCSharp { static void Main() static void Main() { Console.WriteLine("Hello, C#"); Console.WriteLine("Hello, C#"); }} 8

9 C# Code – How It Works? 9 using System; class HelloCSharp { static void Main() static void Main() { Console.WriteLine("Hello, C#"); Console.WriteLine("Hello, C#"); }} Include the standard.NET namespace " System " Define a class called " HelloCSharp " Define the Main() method – the program entry point Print a text on the console by calling the method " WriteLine " of the class " Console "

10 ASP.NET Control HTML Tag … … … Basic Web Controls  HTML 10

11 What is ASP.NET Server Control? (2)  Mandatory properties for all server controls:  runat="server"  ID="…"  Programming model based on events  Each user interaction causes an event  Developer decides which events to handle  Browser-specific HTML is generated  Controls deliver appropriate HTML depending on browser type 11

12 12 ……………… Summary

13 ? ? ? ? ? ? ? ? ? http://softuni.org/courses

14 License  This course (slides, examples, demos, videos, homework, etc.) is licensed under the "Creative Commons Attribution- NonCommercial-ShareAlike 4.0 International" licenseCreative Commons Attribution- NonCommercial-ShareAlike 4.0 International 14  Attribution: this work may contain portions from  "Fundamentals of Computer Programming with C#" book by Svetlin Nakov & Co. under CC-BY-SA licenseFundamentals of Computer Programming with C#CC-BY-SA  "C# Part I" course by Telerik Academy under CC-BY-NC-SA licenseC# Part ICC-BY-NC-SA

15 Free Trainings @ Software University  Software University Foundation – softuni.orgsoftuni.org  Software University – High-Quality Education, Profession and Job for Software Developers  softuni.bg softuni.bg  Software University @ Facebook  facebook.com/SoftwareUniversity facebook.com/SoftwareUniversity  Software University @ YouTube  youtube.com/SoftwareUniversity youtube.com/SoftwareUniversity  Software University Forums – forum.softuni.bgforum.softuni.bg


Download ppt "Svetlin Nakov Technical Trainer Software University"

Similar presentations


Ads by Google