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?