asp+ Chinese Tutorial (a)--asp+ introduction, installation, and how to display Chinese

Source: Internet
Author: User
Tags config version domain name what is asp intel pentium
asp+| Tutorials | show | asp+ Chinese Tutorials-----asp+ Introduction, installation, and how to display Chinese

Finally empty for some time, can learn some new things, look at the relevant information about asp+, feel it is worth learning, so on the side of learning to write this tutorial, for their own, can be used as learning notes, for others, especially those who are not good e-wen friends can be a look at the Chinese Information Bar, To play a role. Due to the level of limitations, mistakes are unavoidable, I hope you can criticize. First I will talk about what is asp+, and then I will combine NGWS with the example of specific asp+ application. Due to the usual use of C more, so all examples are in C # (C Sharp, Microsoft's a new programming language, specifically corresponding to its NGWS runtime) to write.

Since it is called asp+ tutorial, but naturally want to say what is called asp+, but here I do not want to simply translate Microsoft's own introduction, one is because of such a lot of translation, and Microsoft itself is a bit of a self flattering suspicion. I just want to talk about some of my initial impressions of asp+. Asp+ gave me the first feeling is that the function is too powerful, perhaps you have seen my domain name query asp+ program, compared to the use of components to more convenient, no longer subject to the limitations of those writing components, you can say that, all traditional programming language can do, asp+ can do, of course, Because it is a web programming language itself, it is limited by web programming. So what's the breakthrough for Asp+ for ASPs? First of all, the operating mechanism is different, the ASP is an interpretive programming framework, its core is VBS and JS, the two scripting languages, the limitations of the decision of the ASP is congenitally deficient, it can not do as the traditional programming language, such as low-level operations, so if you need to do some such as socket, Files, and so on, have to rely on other traditional programming languages such as C + +, VB, Java, and other components written, and because it is interpreted by the implementation, so the efficiency of the operation is greatly compromised. And asp+, it's a compiled programming framework, its core is NGWS runtime, in addition to the same as the ASP can use VBS and JS as a programming language, can also use VB and C # to write, which determines its powerful function, you can do many low-level operations without the aid of other programming languages. In addition, because it is compiled and run, the execution efficiency is much higher than the ASP.

Well, it's boring and tedious to talk about these theoretical things, so let's be realistic. Let me talk about the asp+ operating environment. To run the asp+ program, first you have to run the conditions (nonsense), first of all, you need asp+ support environment, that is, NGWS runtime, which you can download from the Microsoft site, because NGWS is planned in the visual Studio7 out of the official version, So what you can download now is its beta version, the exact version number is 1812.9. But do not rush to download, first of all to see if your machine can run, the specific requirements are as follows:
· Cpu:intel Pentium ii-class MHz (Intel Pentium iii-class MB recommended)
· ram:96 MB (128 MB recommended)
· Available hard disk spaces (for install): MB
· Available Hard disk space (post install): MB
· VIDEO:800X600, 256 colors
· Cd-rom:required
· Operating system:microsoft Windows SQL and Microsoft Internet Explorer 5.5
· Other SOFTWARE:MDAC 2.6 Beta 2
See, how, if your computer meets the requirements, then come on, let us download this 80-M monster, the specific download address is:
Http://download.microsoft.com/download/platformsdk/Trial/1812.10full/NT5/EN-US/Setup.exe
After downloading, installation and configuration is very simple, you only need to run this setup.exe and then follow the wizard to complete the installation, now we can run our first asp+ program. All right, look at this program here:

File:intro1.aspx


<link rel= "stylesheet" href= "Intro.css" >

<body>


<center>

<form action= "intro1.aspx" method= "POST" >


Category: <select id= "Category" size=1>
<option>psychology</option>
<option>business</option>
<option>popular_comp</option>
</select>

<input type=submit value= "Lookup" >

</form>

</center>

</body>

How about, see understand. What the? Is this a standard HTM file? Yes. Hey, don't throw rotten Tomatoes, rotten eggs, look carefully, although this is a standard HTM file, but you save it as a suffix of. aspx files, and then run in the browser, how, not to deceive you, this is a asp+ file, your first asp+ program. Since asp+ is compatible with ASP, any ASP file can be run as a asp+ file, let's make a slight change to the top of this file, and change the name and category in front of the two input to names and categories, as in the following file:

Intro1c.aspx
<link rel= "stylesheet" href= "Intro.css" >

<body>


<center>

<form action= "intro1.aspx" method= "POST" >


Category: <select id= "Category" size=1>
<option>psychology</option>
<option>business</option>
<option>popular_comp</option>
</select>

<input type=submit value= "Lookup" >

</form>

</center>

</body>

This time you run again, what happens? How, Chinese characters all become?? Number? Yes, yes, on the surface is not supported Chinese characters, but in fact we have a solution, find winnt/complus/[version]/config.web This file, note [version] refers to the version number of NGWS, may be like this: winnt/ Complus/1812.9/config.web, open the file in Notepad and find the following lines:
<globalization
Requestencoding= "Us-ascii"
Responseencoding= "Iso-8859-1"
/>

[1] [2] Next page



Related Article

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.