Archive for July, 2010

Introduction To Sub Sonic With (Data Access Layer)

Display Loading Image Using Jquery Ajax Methods in

Often we need to display a loading indicator whenever an ajax request is done. To accomplish this you can look at the following code:

<script src=”" type="text/javascript"></script>

<script language="javascript">

$(document).ready(function() {
$("# btnGetName ").click(function() {
 type: "POST",
 url: “../Default.aspx/GetName",
 data: "{}",
 contentType: "application/json; charset=utf-8",
 dataType: "json",
 success: function(msg) {
 $("# divName ").html(msg.d);
$("# loading ").ajaxStart(function() {
$("# loading ").ajaxStop(function() {
<form id="form1" runat="server">

 <div id="loading" align="center" style="padding-right: 25px; z-index: 3; padding-left: 25px;
 left: 45%; top: 45%; padding-bottom: 15px; padding-top: 15px; position: absolute;">
 <img alt="Loading..." id="ImgLoader" runat="server" src="loader.gif" />

 <div id="divName"></div><input id="btnGetName" type="button" value="Get Name" /></div>

</body> Custom Validator and Jquery $.ajax()

When we are using custom validation and making Ajax call using jquery library, custom validation function always returns true. We can fix this, jQuery’s $.ajax() function has a handy option: async, which when set to false does what we need – it waits for the response from the server before continuing to our success function.

For detailed description with example visit:

Tree View Control using Jquery (DynaTree),

July 5, 2010 2 comments

Below are some links for Using Jquery, Obout Treeview Control with

Using Jquery

Using Obout