Living with C#

Archive for the ‘ASP.NET’ Category

Application Architecture

I believed that business layer and database layer are conceptual layers or set of classes that serves particular domain operations rather than physical classes. However I usually came across projects which contains classes like BusinessLayer or DataAccessLayer and thousands of functions, you can easily find single function (in business layer) with 10 to 20 switch [...]

ASP.NET Detect Page Refresh

We often wonder how to detect whether post back request is page refresh (F5) from browser or not. Following code does that job for me, I simply check for view state in the request is different or I receive it already, where timestamp make sure that new view state must be different from old one [...]

Follow

Get every new post delivered to your Inbox.