Presentation is loading. Please wait.

Presentation is loading. Please wait.

 Lecture 01 1.  Website language: ASP.net  Book name Beginning ASP.NET 4 in C# and VB 2.

Similar presentations


Presentation on theme: " Lecture 01 1.  Website language: ASP.net  Book name Beginning ASP.NET 4 in C# and VB 2."— Presentation transcript:

1  Lecture 01 1

2  Website language: ASP.net  Book name Beginning ASP.NET 4 in C# and VB 2

3 3 Chapter 1 3

4  What is Asp.net  What is difference between Asp.net and php  install Visual Web Developer 2010 Express and Visual Studio 2010 4 4

5  ASP.NET is a development framework for building web pages and web sites with HTML, CSS, JavaScript and server scripting.  ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites. It allows you to use a full featured programming language such as C# or VB.NET to build web applications easily. 5 5

6  The ASP.NET application codes can be written in any of the following languages:  C#  Visual Basic. Net  Jscript 6

7  Both PHP and ASP.NET are server side technologies that provide frameworks to develop web applications. The differences between these two server technologies namely PHP and ASP.NET are: 7

8  PHP is an open source technology which can be used for free.  ASP.NET is a Microsoft technology that is expensive in price.  PHP is a programming language that is used for creating web applications.  ASP.NET is a platform in which programming languages such as VB.NET or C# can be used to create ASP.NET applications. 8

9  PHP will work well in any kind of platform and server.  ASP.NET can be used only with Internet Information Server (IIS).  PHP was launched by Rasmus Lerdorf in the year 1995.  ASP.NET was launched by Microsoft in the year 2002. 9

10  PHP works well with MySQL database. MySQL database is also available for free.  ASP.NET mostly works with MS-SQL database, which also belongs to Microsoft and MS-SQL is not available for free. 10

11  Web Pages  MVC (Model View Controller)  Web Forms (traditional ASP.NET) 11

12  ASP.NET supports the following development tools:  WebMatrix  Visual Web Developer  Visual Studio 12

13  Classic ASP files have the file extension.asp  ASP.NET files have the file extension.aspx  ASP.NET files with C# syntax have the file extension.cshtml  ASP.NET files with VB syntax have the file extension.vbhtml 13

14  Let’s start with a “Hello, World” ASP.NET application.  We will use Visual Studio’s built in web server to test and demonstrate our web application code. 14

15  In Visual Studio 2010  File > New Web Site (NOT New project ) 15

16 16 Web Site Name Check this setting

17 17

18 18

19  There is a pair of “solution” files in the Projects directory. 19

20  Hello.sln holds Visual Studio settings associated with this web site (project).  You can look at it with WordPad.  Hello.suo is a binary file  These files are used only by Visual Studio.  Not part of the web app.  Not deployed to a web server.  Both of these files can be reproduced at any time if they are deleted.  Can generally be ignored. 20

21 21 Double click to open in VS editor

22 22

23 23 Note file name. This is the usual starting page for an ASP.NET web site.

24 24

25 25 Visual Studio has also created the “code behind” file, Default.aspx.cs

26 26 The initial file doesn’t do anything.

27 27 A WYSIWYG editor for web pages. View > Toolbox

28 28 Click here to see Source view.

29 29 Click here to return to Design view.

30 30 Click inside Div box. Then double click on Label in Toolbox.

31 31 Right click on Label. Select Properties. Set Text property to “Hello, World!”

32 32 Click here to view in browser.

33 33 Click OK.

34 34


Download ppt " Lecture 01 1.  Website language: ASP.net  Book name Beginning ASP.NET 4 in C# and VB 2."

Similar presentations


Ads by Google