Author: http://www.aspcn.com Flying
ASP came out of half a year, our site has also been a lot of introduction, but today I finally have a thought about this ASP article. Oh, let everyone wait.
First of all, I have to declare that this tutorial applies to people with a certain network programming experience, such as ASP, PHP, CGI, JSP developers, if you don't understand the network programming, then you still go to learn other languages, otherwise You will have a lot of things that you don't understand. Ha ha.
let us start.
ASP operating environment
We have to learn ASP , so you have to engage in a debug environment. Let your "Love Chicken" support ASP , then you need the following conditions:
Windows 2000 Professional, Windows 2000 Server, Windows 2000 Advanced Server
NGWS
IE 5.5
The above is the need to support the ASP , everyone sees that only Windows 2000 has the possibility of NGWS, NT, Windows 98, Windows Me is temporarily supported by ASP , and will not agree that we will be in other later versions. ASP is supported on the platform, let's wait. And it is not all Window 2000, and the version number of Windows 2000 is RC 3618 or more. The flying knife I used to be the version of Windows 2000 too low, have to give up the genuine, bought the D version (all the ASP the disaster).
NGWS is a big piece of head, 86m, flying knife brothers, my kitten ran for 5 hours, it took it, its download address is http://download/platformsdk/trial/1812.10full/ NT5 / EN-US / setup.exe Fortunately M $ has money, download the bandwidth of the site is still large, download speed is OK. Let's take a slowly.
IE 5.5 is the best thing to get above. This thing is now extensive :), the D version is a lot, huh, huh, can't call the D version, it itself is free :)
Comparison of ASP and ASP
That's the benefits of ASP , then there is much. Let's take a few more obvious.
Speed, ASP is compiled after compiling, that is, when the ASPX file is compiled, the future request does not need to be recompiled. The ASP is an explanatory scripting language, and each time you need to recompile. This reason is that the speed cannot be more than ASP . However, the compilation speed of ASP is also slow enough, debugging on the local machine, and the speed of the first execution is very slow. However, I will soon, and the task of the first execution will be given to the administrator. Let's enjoy the high speed of the future :)
Function, ASP function is incomparable, almost what we can think of in the Internet, huh, huh, give a simple example, that is, the upload of the file, in the ASP era, this problem can only pass the component, but Only the following code is required in ASP . Below is an example:
Void Button1_Click (Object Source, Eventargs E) {
IF (text1.value == ") {span1.innerhtml =" error: you must enter a file name "; return;} if (file1.postedfile! = null) {TRY {file1.postedfile.saveas (" C: //Temp/" text1.value ?;span1.innerhtml = "file uploaded successfully to c: // temp //" text1.value " b> on the web server";} catch Exception Exc) {span1.innerhtml = "Error Saving file c: // Temp //" TEXT1.VALUE " b>
" EXC.TOSTRING ();}}}
script>
hEAD>