Using JScript.NET to make asp.net Web page Basics Tutorial 1

Source: Internet
Author: User
In asp.net programming, I believe you must be accustomed to using vb.net and C #, do you know you can also use JScript.NET to write asp.net?
This is probably the biggest feature leap since Microsoft launched its Jscript1.0 based on IE3.0 in 1996. JScript has traditionally been used as a development client script. It is common on the Internet, especially in Active Sever page (ASP).
When the script becomes large, the programmer needs to write more efficient code, and the program becomes more and more complex, and programmers are often limited by JScript.
If you are familiar with JScript, you will soon be using JScript.NET on the. NET platform, as JScript.NET is like an upgraded version of JScript, not a new language.
The newest feature of JScript.NET is that JScript.NET is the real compiler language. This makes it perfectly comparable to vb.net and C #. In terms of syntax, JScript.NET improves the definition of variable types, supports not only explicit variable type definitions, but also ambiguous variable type definitions. A fuzzy definition is an exciting technique for analyzing variables used in your scripts and inferring the types of variables. This means that you can use undefined variables and execute them at a faster rate.
Please refer to the following example:
function test ()
{
for (var x = 0; x < × x + +)
{
print (x);
}
}
When JScript.NET compiles this program, it analyzes the purpose of the variable x and determines that the variable x is used only as a numeric type, and that the resulting variable is safely defined as a numeric type. The technological advance is that the definition of a variable as a numerical model is significantly better than defining the variable as generic Object or Variant.


Technical Exchange is endless

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.