jQuery auto focus.

In this post we will see how to set focus automatically on input control. This is done using .focus() function in jQuery. jQuery auto focus example <script type="text/javascript"> $(function () { $("#fName").focus(); }); </script> .focus()function is simple and we can call it...

Using RequiredFieldValidator to validate controls | asp.net

In ASP.NET there exists a set of validation server control which are useful to validate the data on form. In this post we will see how to use RequiredFieldValidator. RequiredFieldValidator is used to check if field on the form is not empty. In order to use RequiredFiledValidator, we need to add server control on web form. After adding control on...

Detect IE browser | jQuery

In previous post we saw how to get IE browser in JavaScript In this post we wiil see how to detect IE browser using jQuery. jQuery have Browser object like Navigator object in JavaScript. And using Browser object we can get Browser name, version..etc. jQuery to get IE browser <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> ...

Detect IE browser | Javascript

While working with Web projects those required cross browser compatibility we often need to detect the browser type,like ie, Firefox Mozilla, or chrome...etc. In this post we will see how to find ie browser. This is done using navigator object in JavaScript. Navigator has appName property that we can use to find ie browser. JavaScript to detect...

jQuery check uncheck all checkboxes in gridview

In this post we will see how to check and uncheck checkboxes in the gridview. We will check and uncheck checkboxes at client side in gridview using jquery. First we will add check boxes to gridview like: Gridview with checkboxes <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BorderWidth="1px"      ...

jQuery ajax handle exception thrown by wcf

When we work with jQuery Ajax call to WCF, it may possible that WCF service will thow an exception. And we need to catch that exception in jquery ajax error routine. In order to show or get exception thrown by service we need to configure includeExceptionDetailInFaults="True" for in behavior like: <serviceBehaviors>   <behavior name="">    ...