Asynchronous Request to Server (JavaScript)

I have seen posts today asking for Asynchronous Request to Server which will Query the Database for certain information.
Here, I am giving one example, which will send an Asynchronous Request to server for Checking the availablity of the UserName entered by the user against database.

Below is my WebPage:

<div>
<asp:Label ID=”Label1″ runat=”server” Text=”UserName:”></asp:Label>
<asp:TextBox ID=”TextBox1″ runat=”server”></asp:TextBox>
<asp:Button ID=”Button1″ runat=”server” Text=”Button” OnClientClick=”return CheckUserNameAvailablity1()” />
</div>

Here, I have attached a JavaScript Function CheckUserNameAvailablity1() with OnClientClick Property of the Button Control. Below is that JavaScript Function:

Read More…

Vertically Scrollable Repeater with fixed Headers

I had to find some work-a-round for a scrollable repeater. The way I want it to be is to have fix headers with able to vertically scrollable. I found lots of example dealing for this solution with CSS and JavaScript. Luckily, I found one which works in both IE and FF. I managed to make one example here.. Read More…

Multiple Active Result Sets (MARS – ADO.NET 2.0)

Multiple Active Result Sets (MARS) is a feature in ADO.NET 2.0. It allows execution of multiple batches against Database on a single connection. Preeviously, only one batch could be executed at a time against a single connection. But, execution of multiple batches with MARS does not mean like simultaneous execution of operations.

In previous versions of SQL Server; to access multiple result sets using SqlDataReader objects, a separate SqlConnection object must be used with each SqlCommand object. In ADO.NET 2.0 / SQL Server 2005; MARS feature is disabled by default. It can be enabled by adding the “MultipleActiveResultSets=True” keyword pair to your connection string, as below.. Read More…

TreeView: Automatically check all ChildNode CheckBoxes on Checking ParentNode CheckBox using JavaScript

Below, is the JavaScript code function snippet I used in one of my web application; to provide the functionality of “Select All Child” when ParentNode CheckBox is Checked; means to automatically Check all the ChildNode CheckBoxes, when you Check the ParentNode. I used the TreeView Control with ShowCheckBoxes Property.. Read More…

DataTableReader Class in ADO.NET

Eventhough DataTableReader is an excellent concept and got lot of advantages when compared to SqlDataReader, it is not yet widely used in web application development. Even I have never used the DataTableReader Class in any of my application before. But, the combination of DataTable + DataReader (I.e. connected + disconnected architecture) is the most impressive thing about DataTableReader.. Read More…

Recursion method to clear TextBoxes in nested Container Controls

In this post; I will try to explain use of Recursion method to clear TextBoxes in nested Container Controls.

Below is the Iterative code snippet to clear TextBoxes within any Container Control… Read More…

Convert Date from any format to any format

Check out my article on “Convert Date from any format to any format in .NET”.

I come accross a code snippet while development which can be useful to convert the date display format. Read More…

Introduction to .NET Remoting – 1

Check out my article on “Introductin to .NET Remoting – 1″.

The article will give you introduction to the world of Distributed Application development and its respective technologies. Read More…

Follow

Get every new post delivered to your Inbox.