Thursday, May 9, 2013

Pass two arguments to DataNavigateUrlFormatString

Hyperlink Column in a Gridview can be easily accomadated to accept two or more arguments as displayed below.

 <asp:GridView ID=”GridView1″ runat=”server” AutoGenerateColumns=”False” >
<Columns>

<asp:HyperLinkField DataNavigateUrlFields=”ProducrID,Company” DataNavigateUrlFormatString=”ProductDetails.aspx?ProducrID={0}&Company={1}” Text=”View Student” />
<asp:BoundField DataField=”Description” HeaderText=”Description"  />
</Columns>
</asp:GridView>   

Cheers
Samitha

Tuesday, April 23, 2013

use Session variable in an HttpHandler

In order to use session variables inside an  HttpHandler implement the IRequiresSessionState(System.Web.SessionState namespace) interface

E.g.
 public class AutoSuggest : IHttpHandler, IRequiresSessionState
{
   public void ProcessRequest(HttpContext context)
  {
      context.Session["session_name"] ="xyz";
   }
}

Cheers
Samitha.

Sunday, March 31, 2013

Spring.NET

Take a look at Javas's spring version for .net. This is an open source framework that that assists building enterprise applicaitons.

http://www.springframework.net/

Cheers
Samitha

Thursday, March 28, 2013

Ajax.NET Professional (AjaxPro) Starter Kit

Ajax.NET Professional  is a Ajax Framework for the Microsoft .NET Framework which you can use with any .NET languages to invoke any .NET method from the client-side.
 Download the AjaxPro from http://www.ajaxpro.info/

Cheers
Samitha 

Saturday, March 9, 2013

An Ajax toolbar for crystal reports

As I have blogged in one of my previous post, crystal reports tool bars have a strange behavior  when used inside an update panel. The solution for this can be achieved by using a customized toolbar for CrystalReportViewer. Following blog provides such implementation using an example and it worked for me

http://www.rahulsingla.com/blog/2010/03/an-ajax-toolbar-for-asp-net-crystal-reports