Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

AJAX is server side, What about client side validation?

$
0
0

Am new to AJAX and Javascript. ScriptManager seems to control them both.

The ASP.NET 4.0 by Wrox I'm working out of recommends putting this in master page:

<% Master Language="VB %>

<Script runat="server">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body class="bodyclass">
    <form id="form1" runat="server">

<div>

<asp:ScriptManager ID="ScriptManager1" runat="server"/>

<asp:ContentPlaceHolder ID="ContentPlaceholder1" runat="server">

    </asp:ContentPlaceHolder>

</div>

Questions:

1. With that, will all the scripts(Javascript or AJAX) I register for any page derived from master run the server?

2. I want easy-to-code, quick-running client side validation to complement my slow, certain-to-work server side validation. How to achieve and still run Ajax?

3. AJAX all runs on server side, and is faster than a whole postback, I understand. Still can I call Client-Side Javascript(or JQuery or whatever) from code-behind file? Is such a thing possible or does all code-behind runat server? 


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>