Tag | Coding Posts

Lets face it, RegEx are a part and parcel of a developers’ life and very few actually have the know how to write them and even fewer have the willingness to do so. I am in the second category and oftentimes it takes me quite bit of inertia to wake up and create that perfect RegEx for my needs. Nettuts+ here does a lot of good to the community by providing a well thought-out and even well presented list of 8 RegEx you should know. Some of which you must have come across at some point in your career. ...
Definition Aggregator Provider Pattern is an extension of Provider Pattern, which enables us to create and utilize multiple instance of the class having the same provider interface. In this pattern, there is an Aggregator class which implements the provider interface and contains a collection of instances of classes having the same provider interface. The underlying caller class of this aggregator is simply unaware of how many provider instances do the caller Provider Aggregator contains, but all ...
Master page made the developers life extremely easy where all of the core design (specially headers, footers etc) can be designed and defined in one page which then can be inherited by all the pages in the application without requiring adding the header, footers etc explicitly. However master pages can also be nested, that is in a application, where are there two (or more) set of designs to be followed in two or more set of pages, along with following some common design components (such as header, ...
Generics is a new feature in .NET 2.0 which allows us to create a data structure without committing to a specific data type. In the early age of .net 2.0 (i.e. .net 1.x), while using custom entity model in our application data architecture, we had to create a separate class regarding the collection for each of custom entity. The custom entity public class SystemUser { public string _Name, _Password; public SystemUser(string name, string password) { _Name = name; _Password = password; } public string ...
Authentication and authorization is the two basic part of the user-end security in asp.net web applications. After to successful authentication of a user, authorization takes the place according to which the authenticated user are allowed to access to the corresponding resources in the web application. Role based security is very basic requirements in the current trend of web applications. Mostly there are two roles involved, which are registered user and the admin users. However in a web application ...
New developers often ask me about C# delegate, as they got a bit confused about the basic concept and specially maximum of the reference contains and discussed from an advanced view. Well I think delegate is really simple, when you grab it's basic idea. So what is delegate? Basically it is similar like the old "C" age function pointer, where functions can be assigned like a variable and called in the run time based on dynamic conditions. C# delegate is the smarter version of function pointer which ...
In perfect world you can get all of the best things in one place. But in real world it’s not. In software development there are some basic trade-offs when you consider a specific design feature. Exploring these considerations will help you to create the architecture that matches best with the given context. Performance Security (code level, encryption etc) VS Performance (code level) Caching: Memory VS Performance Object Oriented/Layered Code VS Performance Scalability VS Deployment (n-tier) User ...
"Such and Such a grid should not be blank when there is no data, it should show the column headers with no rows." How many times have you heard that? Yeah, I've seen it as bugs in the change request system!! Seems like a simple enough request, but trying to deliver it sends you straight into the land of GridView hacking. Oh why was such a simple feature not incorporated into the GridView. Microsoft are you listening. Instead you have to jump hoops. Here are some of those hoops that help you solve ...