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 ......
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 ......
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 ......
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... ......
Recently I wrote an article "How to exchange data securely with a WebService without HTTPS/SSL" in codeproject. If Cryptography, Public/Private Key, Digital Signature and Web Service are one of your interest, I strongly recommend to read it ......
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 ......