Geeks With Blogs
Amit's Blog Sharing Thoughts and Learning C#
Performance Benchmark with an Handy Class
Instrumentation and Logging is an essential part of Software Development. Generally, most of the developer thinks instrumentation and logging is all about exception logging in a text file, which is not correct at all. Certainly, exception takes a major part in the instrumentation and logging. However, how many of us really bother the way the log data is written, do we really bother to import this data in a software to further analysis? In the following, I will present a handy class, which will automatically ......

Posted On Thursday, June 21, 2007 11:47 PM

Asp.net Ajax Grid and Pager Control
My recent article "ASP.NET Ajax Grid and Pager" has been published in DotNetSlackers.com. A fully designer supported Ajax Control, which mimics the GridView Control in client side. Please vote for me if you find it useful ......

Posted On Thursday, May 31, 2007 3:15 PM

Secure Cookie
This my second post of almost same topic asp.net lacking. This time it is Cookie. Still Asp.net has the lacking of creating encrypted cookie. Here is another handy class which generates encrypted cookie. Usage://Writing CookieSecureCookie.Set(Resp... "Key1", "Value1", DateTime.Now.AddDays(1));Se... "Key1", "Value1"); //Overloaded //Reading Cookiestring key1Value = SecureCookie.Get(Request, "Key1"); SecureCookie: using System;using System.IO;using System.Text;using System.Web;using ......

Posted On Thursday, January 18, 2007 11:20 PM

Secure Url
Asp.net 2.0 has been released, but Asp.net still does not have any built-in support for passing querystring in encrypted text. The following class will give you the support to pass querystring in encrypted rather than plain. Usage: //WebForm1.aspx, From the senderSecureUrl url = new SecureUrl("WebForm2.aspx?Ke... WebForm2.aspx?param=HrxR96w... To ReceiverSecureUrl url = new SecureUrl(Request.Url.PathA... ......

Posted On Thursday, January 18, 2007 5:17 PM

Writing Code against the External Service
When consuming any external service, don't expect the external service developer is as much smart as you are. Recently I have faced an issue when integrating with Amazon S3 that they failed to serve the data on first request, but on the consequent request they are able to return the data. So I did a little tweak in my code, instead of calling the service once, I am retrying up to 3 times. If the retry also fails the regular code block executes: const int MAX_TRY = 3;int tryCount = 1;byte[] result ......

Posted On Saturday, January 13, 2007 11:18 PM

Copyright © Kazi Manzur Rashid | Powered by: GeeksWithBlogs.net | Join free