Introduction to ASP. NET development tool web matrix

Source: Internet
Author: User

Introduction to ASP. NET development tool web matrix

Author: arui

Home: http://blog.csdn.net/arui319

I. Opening Speech

Generally, when talking about ASP. NET programming, most of us will think of Microsoft's Visual Studio. NET platform. The official version is version 2003, and Version 2005 is coming soon. However, if you only want to learn or just want to develop a small ASP. net Program, installed. net, a few Gbit/s giant, not only occupies a lot of hard disk space, but also has high requirements on machine configuration. In fact, there is a tool that can fully meet your needs. This tool is web matrix. Let's get to know and use this small but powerful ide tool.

 

Ii. Features of web matrix.

ASP. NET and HTML pages. Web matrix allows you to quickly create ASP. NET pages or HTML files. You can drag and drop the server control or custom control (. ascx) directly from the toolbox to the page. What you see is what you get. Double-click the control to automatically generate the Event code. Supports editing controls.

SQL Server and Access database management. The built-in tool allows you to create and edit SQL/MSDE or access databases in web matrix. You can use the built-in Wizard to automatically generate ADO. Net code.

Supports multi-language environments. In the aspx and ascx files, you can use C #, VB or J # To write code.

Class browsing. Built-in tools: You can browse the attributes, events, or methods of all classes in. NET Framework, view the relationships between classes, and find the associated classes and derived classes.

Support for XML Web Services. You can easily add XML Web Services Support to Web applications.

Supports mobile applications. Web matrix provides a mobile toolkit that supports writing web pages for mobile devices such as PDAs and smart phones.

Built-in FTP function. With this function, developers can directly design and modify files on remote computers. Developers do not need to download, modify, and then upload, saving development time.

Built-in web server. Web Matrix also comes with a web server: matrix Web server, which can run in Win2000 and WINXP environments. It supports Web services and can only be accessed locally, do not worry about the security of this server. This Web Server can be used to debug programs. You can directly open the web server in web matrix for debugging. Therefore, it is unnecessary to install IIS and other server software.

Integration Community. The web matrix contains a list of resources related to sites, forums, and newsgroups such as Asp.net and web matrix. You can directly communicate with other programmers who use web matrix.

 

3. Download and install Web matrix.

Can we go to http://www.asp.net/webmatrix/default.aspx? Tabindex = 4 & Tabid = 46 download and install the latest web matrix. This website also provides related web matrix introduction and tutorials. It is not a formal ASP. NET development tool developed by Microsoft, but written by some members of the Microsoft team in their spare time. Its Installation File is only 1.3 MB, and it only occupies about 3 MB of space after installation. Is it incredible that a tool about 3 m can be used to develop ASP. NET programs? Okay. After the installation is complete, let's continue.

 

4. Use web matrix.

Now, let's simply use web matrix to write an ASP. NET program and feel its functions. This example is very simple. After you click a button, a line of "Hello ASP. NET!" is displayed !".

Open Web matrix and create an ASP. NET page file. 1.



Figure 1

If you use VB or J # To write code, you can select VB or J # from the drop-down list of language. Click OK to create a newfile under the directory address shown in Figure 1. the aspx file opens a blank page in which you can edit ASP. NET page, write HTML code, or write program code. 2.


Figure 2

Figure 2 shows the overall picture of web matrix. The middle part is the design window, the left side is the toolbar, and the right side is the attribute and event window.

Find the button in the toolbar and drag it to the design window. You can set its properties in the attribute column on the right, which defaults to its properties here. Double-click this button. web matrix automatically jumps to the code page and automatically adds the onclick Event code of the button. Enter the following code:

Void button#click (Object sender, eventargs e ){

Response. Write ("Hello ASP. NET! ");

}

After the code is entered, you can choose View-> Start from the top menu, or press F5 to run the program. If it is the first time, web matrix will prompt you whether to apply ASP. NET web matrix server as the server. After confirmation, web matrix server will run in the background and display the icon in the system tray. If the program code is correct, the expected ASPX page is displayed. If the code is faulty, a compilation error is displayed.

After clicking the button, "Hello ASP. NET!" is displayed on the page !", 3.


Figure 3

By writing this example page, you can see other advantages such as the small size of web matrix and the low resource usage. We can also feel some of its shortcomings, such as the absence of. in this way, programmers need to have a more professional level. The generated files do not really hide the Code. The Code is embedded into the generated aspx file. However, for such a tool software with only a few megabytes of data, these shortcomings are already harmless.

 

5. Conclusion.

In short, web matrix has many advantages and disadvantages. Compared with vs. net, web matrix is completely free, which is the most attractive. In addition, this tool has many new functions that vs. Net does not have. Therefore, whether you want to learn ASP. NET or develop small ASP. NET programs, consider web matrix.

Note: This article is original and can be reproduced, but keep all information.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.