What is the use of JavaScript in ASP.NET

What is the use of JavaScript in ASP.NET

In this video we will discuss br 1. The use of JavaScript in a web application. br 2. Advantages of using JavaScript br br What are the advantages of using JavaScript br 1. Form validation can be done on the client side, which reduces the unnecessary round trips between the client and the server. This also means the load on the server is reduced and the application is more responsive. br 2. JavaScript uses the client machine processing power. br 3. With JavaScript partial page updates are possible i.e only portions of the page can be updated, without reloading the entire web form. This is commonly called as AJAX. br 4. JavaScript can also be used to animate elements on a page. For example, show or hide elements and sections of the page. br br function ValidateForm() { br var ret = true; br if (document.getElementById("txtFirstName").value == "") br { br document.getElementById("lblFirstName").innerText = "First Name is required"; br ret = false; br } br else br { br document.getElementById("lblFirstName").innerText = ""; br } br br if (document.getElementById("txtLastName").value == "") { br document.getElementById("lblLastName").innerText = "Last Name is required"; br ret = false; br } br else { br document.getElementById("lblLastName").innerText = ""; br } br br if (document.getElementById("txtEmail").value == "") { br document.getElementById("lblEmail").innerText = "Email is required"; br ret = false; br } br else { br document.getElementById("lblEmail").


User: Kudvenkat

Views: 5

Uploaded: 2014-11-16

Duration: 14:29

Your Page Title