Intimate contact asp+ (1)

Source: Internet
Author: User

Asp+ out almost half a year, our site has also done a lot of introduction, but today, flying knives I finally have the mind to write about this asp+ article. Hehe, keep everybody waiting.

First of all, I have to affirm that this tutorial is suitable for those who have some experience in network programming, such as asp,php,cgi,jsp developers, if you do not understand the network programming, then you have to learn other languages, or the following article you will have a lot to understand the place. Oh.

Here we go.

Asp+ 's operating environment

We have to learn asp+, we have to start a debugging environment out. Let your "Love chicken" Support asp+, then you need the following conditions:

Windows Professional, Windows Server, Windows Advanced Server

Ngws

IE 5.5

The above is to support the needs of asp+, you can see that only Windows 2000 has the possibility to install NGWS, nt,windows 98,windows I have no way to support the asp+, will not cover the promise we will be in the future version of the other platform to support asp+ , let's wait slowly. And not all of the window 2000 can be, the version number of Windows 2000 if RC 3618 above the line. Flying knife I used to be the version of Windows 2000 is too low, had to give up the genuine, bought the D version (all is asp+ to blame).

NGWS is a big, 86M, flying brother. My kitten ran for 5 hours to get it fixed, its download address is http://download.microsoft.com/download/platformsdk/Trial/ 1812.10full/nt5/en-us/setup.exe kidnap m$ rich, download the bandwidth of the site is still large, download speed can also slightly. Let's take it slow.

IE 5.5 is the best thing to fix. This thing is now flooded: the D version of a lot of, oh, can not be called D version, it is free of charge:)

Comparison of asp+ and ASP

Speaking of the benefits of asp+, that's a lot. Here we give some of the most obvious.

Speed, asp+ is compiled and executed, meaning that when the ASPX file is first requested, the subsequent request does not need to be recompiled. The ASP is an interpretative scripting language that needs to be recompiled every time, and the reason is that it can't be compared with asp+. However, the asp+ compile speed is slow enough, debugging on the local machine, the first execution speed is very slow. But later on soon, the first time to perform the task to the administrator to do it. Let's go and enjoy the high speed:

function, asp+ 's function is extremely powerful, can almost do what we can think of in the network, hehe, to give a simple example, that is, file upload, in the era of ASP, this problem can only be through the components, but in the asp+ only need the following code can be. Here is an example:


<script language= "C #" runat= "Server" >

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 <b>c:\\temp\\" +text1.value+ "</b> on the Web server";
}
catch (Exception exc) {
span1.innerhtml = "Error saving file <b>c:\\temp\\" +text1.value+ "</b><br>" + exc. ToString ();
}
}
}

</script>


<body>

<form enctype= "Multipart/form-data" runat= "Server" >

Select File to Upload: <input id= "File1" type=file runat= "Server" >

<p>
Save as filename (no path): <input id= "Text1" type= "text" runat= "Server" >

<p>
<span id=span1 style= "font:8pt verdana;" runat= "Server"/>

<p>
<input Type=button id= "Button1" value= "Upload" onserverclick= "Button1_Click" runat= "Server" >

</form>

</body>

I believe everyone can understand the above procedures, not too difficult. Look at the upload file with asp+ is so simple, do not need any components, oh, only poor knife I wrote a half-day "Aspcnup upload Components", a painstaking effort was m$ to get finished. Our components have to be laid off, alas, sadly. (Flying knife sad to sing "wind rustling, easy water cold, heroes gone forever ...")

Asp+ can do much more than that, here just for a small example, it's more multi-functional we later to introduce, hehe.

Asp+ also has a major advantage is structured programming, his program language can be arbitrarily added, the current support C#,vb,javascript, oh, we are not to support VBScript disappointed?! : This is the general trend, we do not have to disappoint, I later article routines will use C # to write, oh, if you love VB, you can also look at this site on the VB and C # Grammar comparison article, very easy to use. For C #, we may be unfamiliar, but we look at the above procedures, found that he still has a lot of places we are easy to get started. I personally think it is a combination of C + + and VB and Java, it may be the first step of m$ declaration of War Java, we use more people will think he benefits more:)

Write asp+ program, you will think is in writing VB or VC, a lot of ideas are all from VB,VC, may be m$. NET's reason. So we write the process of thinking need to change, to let you feel that this is in writing software, not in the traditional ASP program.

As for asp+ some functions, our site before the article also introduced, oh, we check, we will be through the program to understand, but unfortunately, our service provider's server can not use asp+, otherwise we will know more about the characteristics of the asp+.

Another issue that concerns us is whether Windows 2000 with Ngws also supports ASP, fearing that we have ASPX and that there is no ASP, and that the previous program is all over. This question everybody does not need to worry at all, NGWS design m$ to consider, NGWS also can parse asp, file extension is. asp, then use the ASP method parsing, if it is. aspx uses asp+ to resolve, so your previous ASP is not reimbursed. Haha, we can rest assured. That's how it's done on a flying machine. Aspx,asp can be used:)

This is the first section here, the next section, we introduce, asp+ Grammar: And everyone to join.



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.