ASP. NET upgrade capability

Source: Internet
Author: User

Scalability is always associated with performance in my last topic, but in fact they are totally different. In the performance section, I have talked about caching, which is one of the biggest improvements to scalability. Therefore, I am (author) thinking, I have to find some other content to discuss in this section.

First of all, this system has its own characteristics to Improve the Performance in the multi-processor and string environments. For example, the session state can be
Server sessions. In this way, even if you do not
I have thought about how fast the traffic will increase, or I can easily add more network servers.

There are also some things called "Web Garden" that I don't fully understand. However, they can help multi-processor machines
More work for a single processor. I think it is a very novel idea, but some people think they will not use this function.

Therefore, you already have tools to build a perfect web farm, but how can you keep them running? Of course, Asp. Net runtime will monitor
And manage processes. When a vulnerability or deadlock exists, the runtime is automatically closed, but you only need to wait and it will be restored. Before the old version is disabled, a new version
Will be started at the location of the old version to overwrite the old version. Runtime then directs new commands to the new working process, rejects old commands, and closes them. Because there is a replacement
In the end, the user will not find any changes.

After introducing the high performance of ASP. NET, I will introduce several examples below.

Here is an example of C #.

Verify user form input

Running Environment: Win2000 advance SERVER + iis5.0 + ngws SDK (80 m ).

<% @ Page Language = "C #" %>

<HTML>
<Script language = "JavaScript">
Function clientvalidateemail (source, value)
{
VaR strr;
Re =/(/W + @/W +/./W +) (/. {0, 1}/W *) (/. {0, 1}/W *)/I;
Re.exe C (value );
If (Regexp. $3! = "" & Regexp. $3! = "." & Regexp. $2! = ".") Strr = Regexp. $1 + Regexp. $2 + Regexp. $3
Else
If (Regexp. $2! = "" & Regexp. $2! = ".") Strr = Regexp. $1 + Regexp. $2
Else strr = Regexp. $1
If (strr! = Value)
Return false;
Else
Return true;
}
</SCRIPT>
<Body>

<H3> ASP. NET user input verification

<Form method = post runat = Server>
<HR width = 600 size = 1 noshade>
<Table>
<Tr>
<TD>
<Asp: validationsummary id = "valsum" runat = "server"
Headertext = "you must enter the following form fields :"
Displaymode = "bulletlist"
Font-name = ""
Font-size = "12"
/>
</TD>
</Tr>
</Table>
<Center>
<P>

<! -- Login information -->
<Table border = 0 width = 600>
<Tr> <TD colspan = 3>
<Table border = 0 cellpadding = 0 cellspacing = 0 width = "100%">
<Tr> <TD>
<B> Logon Information </B>
</TD> </tr>
</Table>
</TD> </tr>
<Tr>
<TD align = right>

Email Address:

</TD>
<TD>
<Asp: textbox id = Email width = 200px maxlength = 60 runat = server/>
</TD>
<TD>
<Asp: requiredfieldvalidator id = "emailreqval"
Controltovalidate = "email"
Errormessage = "email address"
Display = "dynamic"
Font-name = ""
Font-size = "12"
Runat = Server>
*
</ASP: requiredfieldvalidator>
<Asp: customvalidator id = "emailregexval" runat = "server"
Controltovalidate = "email"
Clientvalidationfunction = "clientvalidateemail"

Display = "static"
Font-name = ""
Font-size = "12">

Invalid email address

</ASP: customvalidator>
</TD>
</Tr>

<Tr>
<TD align = right>

Password:

</TD>
<TD>
<Asp: textbox id = passwd textmode = "password" maxlength = 20 runat = server/>
</TD>
<TD>
<Asp: requiredfieldvalidator id = "passwdreqval"
Controltovalidate = "passwd"
Errormessage = "User Password"
Display = "dynamic"
Font-name = "" font-size = "12"
Runat = Server>
*
</ASP: requiredfieldvalidator>
<Asp: regularexpressionvalidator id = "passwdregexbal"
Controltovalidate = "passwd"
Validationexpression = ".*[! @ # $ % ^ & * +;:]. *"
Display = "static"
Font-name = "" font-size = "12"
Width = "100%" runat = Server>

The password must contain the following characters :(! @ # $ % ^ & * + ;:)

</ASP: regularexpressionvalidator>
</TD>
</Tr>
<Tr>

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.