asp.net 1.3 installs. Net
Asp. NET changes so much that it may make you feel a little scared. "One step at a distance," you will find that mastering it is not a difficult task, and the changes in your programming thinking and efficiency will make you feel that what you start to pay is entirely worthwhile. You may be worried about whether the previous ASP code can continue to run, do not worry, in the. NET environment, ASP. NET and ASP are not interfering with each other. The previous ASP file is still saved as ". asp", and the new asp.net is saved as ". aspx".
Asp. NET can now run on Windows NT4, Windows 2000, and Windows XP. ASP.net cannot be run on the Windows 9x platform yet. You need to first install the. NET Framework. You can download it from Microsoft's website (http://www.microsoft.com/net). can also be in the ASP Cool Technology Network (www. aspcool.com) on the download via the following address: Http://www.aspcool.com/download/display.asp? did=316. If you are developing a asp.net program, you will need to install the. NET Framework SDK (Software Development Kit, Software Development Kit). Download the address: http://www.aspcool.com/download/display.asp? did=315. NET Framework SDK includes not only the. NET Framework, but also the documentation, sample code, command-line tools, and compilers you need to write, build, test, and deploy. NET Framework applications.
Check to see if IIS is installed prior to installation, and if you already have IIS installed, the installer will automatically register asp.net during the installation process. If you install the. NET Framework First and then install IIS, you will need to manually register the asp.net. The installation process is simple. After clicking on the installer, it will automatically extract the installation files.
During the installation process, you will see the picture shown in Figure 1-1. Here you should select the Software Development Kit and SDK examples so that you can learn and use. NET with these examples.
Figure 1-1
In the installation directory of the. NET Framework SDK, you will find a quick start, tutorial, and a large number of examples of the. NET Framework.
1.4 ASP. NET development tools
You can use WordPad directly to develop ASP.net applications. This means that any small things like the entry box, you have to write your own hands. If you think this is not a problem, I recommend that you use some editors with line logos and color labels, such as EditPlus, Ultra Edit, and so on. Of course, for most people, there may be a tendency to use some wyswyg (WYSIWYG) development tools. Here I would like to introduce you to two development tools that are very good at writing asp.net.
1.4.1 Visual Studio.NET
There is no doubt that Visual Studio.NET is by far the best development tool for developing. NET programs. Visual Studio.NET provides control drag-and-drop, automatic debugging, and more. The ability to quickly design, develop, debug, and deploy Web applications, greatly improving the productivity of your development programs.
1. Installation of Visual Studio.NET
The installation of Visual Studio.NET includes the following steps,
Figure 1-2
First, you want to update the component. Setup will install the program as shown in Figure 1-3:
Figure 1-3
Windows Service Pack 2 and Internet Explorer 6.0 require the computer to be restarted.
When the component update is complete, we begin to install Visual Studio.NET.
Figure 1-4
We can choose which languages to install, four languages we can choose from: Visual basic.net,c#.net,managed c++.net,jscript.net, this book will choose C # as the development language to explain how to develop asp.net programs. This is because C # is the only language designed for the. NET framework, and it does not need to consider how to be compatible with previous versions, as in other languages. Its syntax is similar to C, C + +, and Java, and development applications are simpler than C + +. is a truly component-oriented development language. And ASP.net itself is written in C #. So you must choose C # when installing. You can then follow the wizard to install Visual Studio.NET step-by-step. Now I'll show you how to use Visual Studio.NET.
2. Using Visual Studio.NET
When you turn on Visual Studio.NET, you will see a list of parameters, you can use their default settings, or you can modify the settings according to your preferences, as shown in Figure 1-5.
Figure 1-5
Here we set the default settings to C #.
Choose File>new>project ... menu item, you will see the following window:
Figure 1-6
We choose Visual C # Projects and you will see 11 templates on the right to choose from. We chose ASP.net Web application to start creating our first ASP.net application. Visual Studio.NET automatically creates a virtual directory under the Wwwroot directory where the Web program is located, called WebApplication1, where you can take a different name from the program's function. When you turn on IIS, you will find a virtual directory named WebApplication1, as shown in the following illustration:
Figure 1-7
Go back to Visual Studio.NET and you'll see it help you build a Web page called WebForm1. As shown in Figure 1-8.
Figure 1-8
On the left is toolbox, you can drag the controls you want to add directly onto the page. On the right is solution Explorer, and you can see all the information in the solution. The top is the toolbar and the VS menu. In the middle of the main window, you can design the appearance of the ASP.net Web page, you can click "HTML", directly modify the source code.
We now drag the label to the main menu, and then select it right click on the property, you will see the property window, and then its Text property set to "Hey, hello, I began to use asp.net!" "Press F5 to run the program and you'll see your first asp.net Web page." Is it simple?
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.