ASP.NET Development Tool Web Matrix Introduction
Author: arui
Home: http://blog.9cbs.net/arui319, 1, open language
Usually, one said that ASP.NET programming, most of us will think of Microsoft's Visual Studio .NET platform, the official version is 2003, 2005 version is coming soon. However, if you just want to learn or just want to develop a small ASP.NET program, install a vs.net, a few g of the huge things, not only take up a lot of hard disk space, but it is also relatively high for machine configuration. In fact, there is a tool that can achieve your needs, this tool is Web Matrix. Let us know and use this small and very powerful IDE tool together.
Second, the characteristics of Web Matrix.
The design of ASP.NET and HTML page. With Web Matrix, you can quickly establish an ASP.NET page or an HTML file. Users can drag and drop the server control or a custom control (.ascx) directly from the toolbox, what to get. Double-click the control, automatically generate the code of the event. Support the properties editing of the control.
Management of SQL Server and Access Database. Built-in tool, you can create and edit the SQL / MSDE or Access database in Web Matrix. ADO.NET code can be automatically generated by the built-in wizard.
Support multi-locales. In ASPX and ASCX files, users can write code using C #, VB or J #.
Class browsing. Built-in tools, you can browse all classes of the .NET Framework, events, or methods to view the interrelationship between the classes, find the associated classes and derived classes.
Support for XML Web Services. You can easily add XML Web Services support in a web application.
Support for mobile applications. Web Matrix provides mobile toolklings that support WEB pages for mobile devices such as PDA, smartphones.
Self-strap FTP function. With this feature, developers can design them directly to modify files on the remote computer. Developers don't have to download, modify, and upload, save development time.
Book with a web server. Web Matrix also comes with a web server: Matrix Web Server, this server can run in the Win2000 and WinXP environments, support Web Service, only local access, so you don't have to worry about the security of this server. This web server can be used to debug programs, which can be debugged directly in Web Matrix. Therefore, it is not necessary to install other server software such as IIS.
Integrated community. In Web Matrix, there is a list of relevant sites such as ASP.NET, Web Matrix, forum, and news group community resources. You can communicate directly with other programmers using Web Matrix.
Third, the download and installation of Web Matrix.
We can go to http://www.asp.net/webmatrix/default.aspx?tabindex=4&tabid=46 to download and install the latest Web Matrix. There is also a related introduction to Web Matrix on this site and the tutorial. It is not a formal ASP.NET program for Microsoft, but some people from Microsoft teams are completed using spare time. Its installation file is only 1.3m, but it is installed only to take up 3m space. Is there a 3m or so tool that can be used to develop an ASP.NET program, is it unbelievable? Ok, after the installation is complete, let us continue to look down.
Fourth, use web matrix.
Now, let's simply write an ASP.NET program with Web Matrix to feel its function. This example is very simple, but after clicking a button, display a line "Hello ASP.NET!". Open Web Matrix, create a new ASP.NET page file. As shown in Figure 1.
figure 1
If you write code using VB or J #, you can select VB or J # language in the drop-down list of Language. Click the OK button to create a new newfile.aspx file under the directory address shown in Figure 1, and a blank page is turned on, and the user can edit the ASP.NET page, write HTML code, or write program code. as shown in picture 2.
figure 2
From Figure 2, you can see the full picture of Web Matrix, the intermediate portion is the design window, the left side is the toolbar, the right side is attribute, event window, and more.
Find the Button button in the toolbar to drag it to the Design window, you can set its properties on the right attribute bar where the property is default it. Double-click this button, the web matrix will automatically jump to the Code page and automatically add the code of the Button's OnClick event. The input code is as follows:
Void Button1_Click (Object Sender, Eventargs E) {
Response.write ("Hello ASP.NET!");
}
After the code input is complete, you can select the View -> Start in the upper menu, or press the F5 key to run the program. If it is the first time, the web matrix will prompt you to use the ASP.NET Web Matrix Server as a server. After confirming, the Web Matrix Server will run in the background and display icons in the system tray. If the program code is correct, the expected ASPX page is displayed; if the code is problematic, the compilation error is displayed.
After the click button, "Hello ASP.NET!" Is displayed, as shown in Figure 3.
image 3
By writing this sample page, you can feel the smart and other advantages such as Web Matrix. You can also feel some of its shortcomings, such as code prompts like VS.NET, which requires programmers to have a more professional level; generated files do not really hide code, code is embedded to the generated ASPX file middle. However, these disadvantages have no harmful elegance for such a tool software that is only a few megabytes.
Five, conclude.
In short, Web Matrix has a lot of advantages and there are many shortcomings. Compared with VS.NET, Web Matrix is completely free, this is the most attractive. And there are many new features in this tool to be VS .NET. Therefore, whether you want to learn asp.net, or develop a small ASP.NET program, consider the web matrix. Description: This article is original, reproduced, but please keep all information.