What is controller layer and where we put this in our 3-tier architecture?
1)UI 2)Business Logic Layer 3)Data Access Layer
I search in net but unable to get exact ans.Any links or sample example helps to understand better.Thanks.
The controller layer is at the UI. It is basically "controlling" what action should take place in your application. Since you tagged this with
asp.net, you should consider looking at Microsoft's version of this structure (called
Controller) - ASP.NET MVC
Edit: Seeing your comment, I've never attempted to shoe-horn MVC into the old WebForms way of life, but it looks like others have - codeproject
The controller handles user input. It is how the user controls your application. It's usually part of MVC: Model (data), View (screen), Controller (input device). The whole of MVC lives in the UI layer, with the model being passed around to the business and data layers (often after having been mapped to another entity).