1
vote
0answers
37 views

Best practices in implementing service methods

Consider the following architecture: ASP.NET MVC Application having controllers which depend on service classes (MembershipService, EmailService etc.) which in turn depend on data access context ...
1
vote
1answer
85 views

Is My Data Access Leaking Connections?

Folks I have an N-Tiered ASP.Net Web Forms application which uses Enterprise Library 5.0 for data persistence. Recently I have noticed my application has been spitting out the following error ...
2
votes
2answers
789 views

Writing a Data Access Layer

I am new to programming and have written this Data Access Layer. I am using this DAL in my projects. Now, I have a feeling that it is pathetic (when I wrote it, I was kind of happy). Do you guys also ...
3
votes
3answers
196 views

How below code can be refactored with design pattern?

In one of our project with 3 tier architecture (tightly coupled), there's bad code smell. It doesn't follow DRY principle. I want to refactor it with design possible design pattern. I don't want to ...
1
vote
1answer
268 views

Refactor IF into Chain of Responsibility Pattern

I've been trying to learn different patterns of programming, and the "Chain of Responsibility" sort of eludes me. I've been told that my specific code snippet would be a good candidate for chain of ...
1
vote
1answer
876 views

How to re register dynamic scripts registered with ClientScriptManager in asp dot net using session was bad idea

Following the normal pattern of adding inline scripts to gridview row/s is a bad practice it used to work like below protected void CustomersGrid_RowDataBound(object sender, GridViewRowEventArgs e) ...