Translation The application of JavaScript in ASP net

Source: Internet
Author: User
Tags asp net

This article translates the JavaScript Tutorial playlist of up master Kudvenkat on YouTube

SOURCE Address here:

https://www.youtube.com/watch?v=PMsVM7rjupU&list=PL6n9fhu94yhUA99nOsJkKXBqokT3MBK0b

In this video we discuss two points:

1. JavaScript usage in the Web App

Advantages of 2.Javascript

For example, there is a table, there are several fields, such as name, mailbox and so on, and then there is a Submit button, when you press the Submit button, the form is post to the Web server, the server check the table content, if the requirements of the table content is not filled, The user will get an error prompt.

In this case, the check of the table is done on the server side. Just to check the table, there is an interaction between the client's browser and the server. Requests must be transmitted over the network to the server for processing. That is, if the network is slow or the server is busy processing other requests, the end user has to wait for a few seconds

So is there a way to check the table on the client?

Yes, we can do it with JavaScript, which runs on the client's browser.

Sumbit This button will issue onclientclick= "return Validateform ()" command. This command will call out JavaScript's Validateform () Function method. This JavaScript code runs on the client's browser and examines the contents of the table. If the form is left blank, the customer will immediately receive an error. This is much more efficient than checking on the server side. Because we are using the customer's own machine processing capacity, Therefore, the burden on the server will be reduced. If all of the table contents are filled in correctly, then this form will be uploaded to the server, so that the server can store the data in the database table

The advantages of javascript:

1. Table checking can be done on the client side, reducing unnecessary interaction between the server and the client. It also reduces the burden on the server, making the program faster

2.Javascript uses the client's machine processing power

3. With the help of JavaScript, it is possible to update only a subset of pages without reloading the current page. This technique is often called Ajax.

4.Javascript can also be used to move elements of a Web page. For example, show or hide elements or parts of a page

Translation The application of JavaScript in ASP net

Related Article

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.