Server-side ASP + code
Author: qingapple computer studio number of clicks: 2733
To display values on the page, we use the same code as in the previous ASP example:
...
If Len (Request. Form ("selOpSys")> 0 Then
StrOpSys = Request. Form ("selOpSys ")
StrName = Request. Form ("txtName ")
Response. Write ("You selected'" & strOpSys _
& "'For machine'" & strName &"'.")
End If
...
However, a major characteristic of ASP + and server control is that the code that is running on the server and generating page output can all be
Use them. ASP + interpreter emphasizes that all the server control (for example
The runat = "server" attribute element) can be reused by the code. This means that we no longer use the Request set.
To get the value of controlling the mail back to the server from our form. Instead, you can use their unique IDs to reference them:
...
If Len (selOpSys. value)> 0 Then
Response. Write ("You selected'" & selOpSys. value _
& "'For machine'" & txtName. value &"'.")
End If
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