Aspnet2.0 Introduction


Published on

Published in: Technology
1 Comment
1 Like
  • Quite interesting presentation, congratulations!
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Aspnet2.0 Introduction

  1. 1. A Getting Started Guide 6/3/2009 BY: MR. HY CHANHAN
  2. 2. INTRODUCTION <ul><li>ASP.NET is one of the most exciting web development technologies on offer today. When Microsoft released the first version a few years ago, many web developers thought all their dreams had come true. Here was a powerful platform with lots of built-in functionality, astonishing performance levels, and one of the best IDEs (Integrated Development Environments) around: Visual Studio. What more could anyone want? Indeed, ASP.NET showed the way for the faster, easier, and more disciplined development of dynamic web sites, and the results were impressive. </li></ul>6/3/2009 BY: MR. HY CHANHAN
  3. 3. What is ASP.NET? <ul><li>For years, the A ctive S erver P ages (ASP) technology was arguably the leading choice for web developers building dynamic web sites on Windows web servers , as it offered flexible yet powerful scripting capabilities. Early in 2002, Microsoft released a new technology for Internet development called ASP.NET . ASP.NET represents a leap forward from ASP both in its sophistication and the productivity gains it achieves for developers. It continues to offer flexibility in terms of language support, but rather than a range of simple scripting languages, several fully-fledged programming languages are now at the fingertips of ASP.NET developers. Development in ASP.NET requires not only an understanding of HTML and web design, but also a firm grasp of the concepts of object oriented programming and development. </li></ul>6/3/2009 BY: MR. HY CHANHAN
  4. 4. What is ASP.NET? <ul><li>In the next few sections, we'll introduce you to the basics of ASP.NET . We'll walk through the process of installing it on your web server, and step through a simple example that demonstrates how ASP.NET pages are constructed. But first, let's define what ASP.NET actually is. </li></ul><ul><li>ASP.NET is a server-side technology for developing web applications based on the Microsoft .NET Framework. Let's break that jargon-filled sentence down. </li></ul><ul><li>ASP.NET is a server-side technology ; that is, it runs on the web server. Most web designers start their careers learning client-side technologies like HTML , JavaScript , and Cascading Style Sheets ( CSS ). When a web browser requests a web page created with only client-side technologies, the web server simply grabs the files that the browser (or client) requests and sends them down the line. The client is entirely responsible for reading the markup in those files and interpreting that markup to display the page on the screen. </li></ul><ul><li>Server-side technologies , like ASP.NET , are different. Instead of being interpreted by the client, server-side code (for example, the code in an ASP.NET page) is interpreted by the web server. In the case of ASP.NET, the code in the page is read by the server and used to generate HTML , JavaScript , and CSS that is then sent to the browser. Since the processing of the ASP.NET code occurs on the server, it's called a server-side technology. As Figure 1.1 shows, the client only sees the HTML, JavaScript, and CSS. The server is entirely responsible for processing the server-side code. </li></ul>6/3/2009 BY: MR. HY CHANHAN
  5. 5. What is ASP.NET? Figure 1.1. A user interacting with a web application 6/3/2009 BY: MR. HY CHANHAN
  6. 6. What is ASP.NET? <ul><li>Note the three roles involved in such a transaction: </li></ul><ul><ul><li>user - Never forget that there's a real person at the end (or beginning) of the line. </li></ul></ul><ul><ul><li>web client - This is the software program that the person uses to interact to the web application. The client is usually a web browser, such as Internet Explorer or Firefox . </li></ul></ul><ul><ul><li>web server - This is the software program located on the server. It processes requests made by the web client. </li></ul></ul><ul><li>ASP.NET is a technology for developing web applications. A web application is just a fancy name for a dynamic web site . Web applications usually (but not always) store information in a database, and allow visitors to the site to access and change that information. Many different programming technologies and supported languages have been developed to create web applications; PHP, JSP, Ruby on Rails, CGI, and ColdFusion are just a few of the more popular ones. However, rather than tying you to a specific technology and language, ASP.NET lets you write web applications using a variety of familiar programming languages. </li></ul><ul><li>ASP.NET uses the Microsoft .NET Framework . The .NET Framework collects all the technologies needed for building Windows desktop applications, web applications, web services, and so on, into a single package, and makes them available to more than 40 programming languages. </li></ul>6/3/2009 BY: MR. HY CHANHAN
  7. 7. What is ASP.NET? <ul><li>Even with all the jargon explained, you're probably still wondering what makes ASP.NET so good. The truth is that there are many server-side technologies around, each of which has its own strengths and weaknesses. Yet ASP.NET has a few features that really are unique: </li></ul><ul><li>ASP.NET lets you use your favorite programming language, or at least one that's close to it. The .NET Framework currently supports over 40 languages, and many of these may be used to build ASP.NET web sites. The most popular choices are C# (pronounced &quot;C sharp&quot;) and Visual Basic (or VB), which are the ones we'll cover in this book. </li></ul><ul><li>ASP.NET pages are compiled, not interpreted. In ASP.NET's predecessor, ASP, pages were interpreted: every time a user requested a page, the server would read the page's code into memory, figure out how to execute the code (that is, interpret the code), and execute it. In ASP.NET, the server need only figure out how to execute the code once. The code is compiled into efficient binary files, which can be run very quickly, again and again, without the overhead involved in re-reading the page each time. This represents a big jump in performance from the old days of ASP. </li></ul><ul><li>ASP.NET has full access to the functionality of the .NET Framework. Support for XML, web services, database interaction, email, regular expressions, and many other technologies are built right into .NET, which saves you from having to reinvent the wheel. </li></ul>6/3/2009 BY: MR. HY CHANHAN
  8. 8. What is ASP.NET? <ul><li>ASP.NET allows you to separate the server-side code in your pages from the HTML layout. When you're working with a team composed of programmers and design specialists, this separation is a great help, as it lets programmers modify the server-side code without stepping on the designers' carefully crafted HTML?and vice versa. </li></ul><ul><li>ASP.NET makes it easy to reuse common User Interface elements in many web forms, as it allows us to save those components as independent web user controls. During the course of this book, you'll learn how to add powerful features to your web site, and to reuse them in many places with a minimum of effort. </li></ul><ul><li>You can get excellent tools that assist in developing ASP.NET web applications. Visual Web Developer 2005 is a free, powerful visual editor that includes features such as code autocompletion, code formatting, database integration functionality, a visual HTML editor, debugging, and more. In the course of this book, you'll learn how to use this tool to build the examples we discuss. </li></ul><ul><li>The .NET Framework was first available only to the Windows platform, but thanks to projects such as Mono, it's since been ported to other operating systems. </li></ul><ul><li>Still with me? Great! It's time to gather our tools and start building! </li></ul>6/3/2009 BY: MR. HY CHANHAN
  9. 9. Installing the Required Software <ul><li>If you're going to learn ASP.NET , you first need to make sure you have all the necessary software components installed and working on your system. Let's take care of this before we move on. </li></ul><ul><li>Visual Web Developer 2005 or Visual Studio 2005 , It is development tools of ASP.NET 2.0 for creating ASP.NET webpage with supported language C# and VB. It is already included .NET Framework 2.0. </li></ul><ul><li>A modern web browser - we'll be using Firefox , Internet Explorer 6, Chrome or Netscape to test our webpage , but you can use other browsers during development if you wish. Any modern browser will do. </li></ul><ul><li>.NET Framework Software Development Kit (SDK) - The .NET Framework 2.0 Software Development Kit (SDK) is a free download that contains the necessary Web Application development tools, a debugger for error correcting, and a suite of samples and documentation. </li></ul>6/3/2009 BY: MR. HY CHANHAN
  10. 10. Installing the Required Software <ul><li>We're also going to need a database. In this book, we'll use the following: </li></ul><ul><li>Microsoft SQL Server 2005 Express Edition - This is the free, but still fully functional, version of SQL Server 2005. If you worked with previous versions of these technologies, you should know that SQL Server 2005 Express is a replacement for the previous Microsoft SQL Data Engine (MSDE). You can read more on the differences between various SQL Server 2005 editions at the Microsoft site. </li></ul><ul><li>SQL Server Management Studio Express - Because the Express Edition of SQL Server doesn't ship with any visual management tools, you can use this free tool, also developed by Microsoft, to access your SQL Server 2005 databases. </li></ul>We are ready to ASP.NET Basic 6/3/2009 BY: MR. HY CHANHAN
  11. 11. Next… <ul><li>Briefed by: Mr. Hy ChanHan, 2hours </li></ul><ul><li>Contact: [email_address] </li></ul><ul><ul><ul><ul><ul><li>011 711 756 </li></ul></ul></ul></ul></ul><ul><li>Follow me on Twitter </li></ul><ul><ul><ul><ul><ul><li> </li></ul></ul></ul></ul></ul>6/3/2009 BY: MR. HY CHANHAN