Yearly Archives: 2011

Maximizing the DataPager control

The ListView control comes along with the DataPager control. In this example below, I tried to make this pager, work like the pager in ASP.net forum threads. Here’s how my example-page looks like. By default this pager works only with … Continue reading

Posted in General ASP.Net C# | Leave a comment

Working with Events/Callbacks in WCF — a simplified beginner example.

In this example below, when the Service receives an Event, it sends notifications to only those subscribers who are interested in that particular event. Long ago, I had worked on a Windows Service which would poll a certain folder at … Continue reading

Posted in WCF | 1 Comment

Exposing WCF Service Metadata — a Configuration example.

A WCF service can expose metadata either through WSDL or MEX. For MEX, you would need a mex endpoint. In the following example, I am using VS2010 and .Net4.0. Here’s how my sample “App.config and the service in action” looks … Continue reading

Posted in WCF | Leave a comment

Working with Multiple Contracts, Multiple Endpoints in WCF

A given WCF service can be configured to work with Http, TCP , old asmx clients, non .Net clients etc etc. — by just changing configuration values, anytime after the service has been developed/deployed. I assume you are familiar with … Continue reading

Posted in WCF | 3 Comments

Hosting a simple WCF service on IIS — a beginner and broad Overview

I have started exploring WCF. I am using VS2010 and .Net Framework 4.0. In this example below, I create a simple WCF service using the “VS2010 -> WCF Service Library” template. This creates a dll and the generated service at … Continue reading

Posted in WCF | 2 Comments

Asynchronous WCF from client perspective, invoked by JQuery — an example.

In my earlier example, “invoking-multiple-wcf-service-asynchronously-and-in-parallel-from-an-aspx-page” the WCF service itself was asynchronous and by calling multiple services in the same request, I was able to get more than one task done in parallel. Everything happened in the same single request, the … Continue reading

Posted in WCF | Leave a comment

Displaying Master-Detail relationship using ListView, Nested Repeater and JQuery

The following example displays master-detail data similar to MS-Access. It also shows the sum total of Price Column at the end of each Products section. Attached screenshots shows various views, when the application is run.               I used the … Continue reading

Posted in General ASP.Net C# | Leave a comment

Few random development Tips-N-Tricks-3

1) A simple way to Refresh Image in Browser after upload is complete, using AsyncFileUpload control. //markup <form id=”form1″ runat=”server”> <asp:ScriptManager ID=”scriptManager” runat=”server” /> <script type=”text/javascript” language=”javascript”> function UpLoadStarted(sender, e) { var t1 = $get(‘<%= imgEPhoto.ClientID %>’); t1.src = “”; … Continue reading

Posted in Tips-n-Tricks | Leave a comment

ListView bulk-edit using ADO.Net’s BatchUpdate and JQuery.

The following example enables bulk updating of records which are displayed in ListView. This example has one great feature. It updates the DB only for those records which are modified by the user. On the client end, a hidden value, … Continue reading

Posted in General ASP.Net C# | 1 Comment

Security issue with JSON Stringify working on JS Array.

I was trying to pass some complex data using JQuery AJAX and JSON.Stringify to my PageMethod. I have this interesting find. In this example below, I have a textBox & 3 buttons which calls 3 respective server side static PageMethod … Continue reading

Posted in JQuery | Leave a comment