video not played or not found error
click on direct switch
Hosted by Dailymotion. For legal issues: Copyright Center · DMC · Instant Removal
What is the use of JavaScript in ASP.NET
Description
1. The use of JavaScript in a web application.
2. Advantages of using JavaScript
What are the advantages of using JavaScript
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.
2. JavaScript uses the client machine processing power.
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.
4. JavaScript can also be used to animate elements on a page. For example, show or hide elements and sections of the page.
function ValidateForm() {
var ret = true;
if (document.getElementById("txtFirstName").value == "")
{
document.getElementById("lblFirstName").innerText = "First Name is required";
ret = false;
}
else
{
document.getElementById("lblFirstName").innerText = "";
}
if (document.getElementById("txtLastName").value == "") {
document.getElementById("lblLastName").innerText = "Last Name is required";
ret = false;
}
else {
document.getElementById("lblLastName").innerText = "";
}
if (document.getElementById("txtEmail").value == "") {
document.getElementById("lblEmail").innerText = "Email is required";
ret = false;
}
else {
document.getElementById("lblEmail").innerText = "";
}
return ret;
}
More from User
JavaScript Basics
Kudvenkat
Where should the script tag be placed in html
Kudvenkat
Inline vs external javascript
Kudvenkat
Tools for learning JavaScript
Kudvenkat
How to debug javascript in visual studio
Kudvenkat
Disadvantages of JavaScript
Kudvenkat
Related Videos
How to use javascript json arrays example in asp.net || visual studio 2015 #javascript tutorials 22
AspDotNet Tutorials
How to use javascript function declaration in asp.net || visual studio 2015 #javascript tutorials 12
AspDotNet Tutorials
How to use javascript break statement in asp.net || visual studio 2015 #javascript tutorials
AspDotNet Tutorials
How to use javascript json example in asp.net || visual studio 2015 #javascript tutorials 21
AspDotNet Tutorials
How to use javascript popup example in asp.net || visual studio 2015 #javascript tutorials 15
AspDotNet Tutorials
How to use javascript switch statement example in asp.net || visual studio 2015 #javascript tutorials 6
AspDotNet Tutorials