Click here to Skip to main content
15,891,248 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionGridView dropdownlist issue Pin
Priya Prk29-Dec-09 5:37
Priya Prk29-Dec-09 5:37 
AnswerRe: GridView dropdownlist issue Pin
Abhijit Jana29-Dec-09 6:02
professionalAbhijit Jana29-Dec-09 6:02 
AnswerRe: GridView dropdownlist issue Pin
PunkIsNotDead29-Dec-09 6:43
PunkIsNotDead29-Dec-09 6:43 
Questionsending control to another class. Pin
lamia nabil29-Dec-09 0:03
lamia nabil29-Dec-09 0:03 
AnswerRe: sending control to another class. Pin
Abhishek Sur29-Dec-09 2:46
professionalAbhishek Sur29-Dec-09 2:46 
GeneralRe: sending control to another class. Pin
lamia nabil29-Dec-09 3:33
lamia nabil29-Dec-09 3:33 
GeneralRe: sending control to another class. Pin
Priya Prk29-Dec-09 5:47
Priya Prk29-Dec-09 5:47 
GeneralRe: sending control to another class. Pin
Abhishek Sur29-Dec-09 21:13
professionalAbhishek Sur29-Dec-09 21:13 
Well, Actually there is no difference. The only thing is that, we always try to separate the presentation layer with data.

It is just because of the separation of code. Say you have implemented 2 or more layers. Your intension is just to separate the Layers so that they could be reusable.

If you send the control, the data layer will be totally dependent on the presentation layer, and thus if this is what you do, then it will be better to have all the data layer classes in the App_Code of your project.

Actually, we all start creating Layers for separation of code, but gradually it becomes so much dependent that we cant plugin the other layer if the presentation layer is changed.

I think if you like to reduce the code, try creating a new Class in your APP_Code and place those code there. From Data layer, you call only for data and manipulation of controls could be made in your application layer.

By this, I definitely mean that there will be no difference if you send though. But at least this is not a good idea... Wink | ;)

If you want to read on how to Refactor code, and reduce Dependency between layers, you might have a look into one of my article :
Simplify Code Using NDepend[^]

I think it will give you the idea on what I am talking about.

Cheers.
Rose | [Rose]

Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->

Windows7 API Code Pack

Simplify Code Using NDepend
Basics of Bing Search API using .NET

GeneralRe: sending control to another class. Pin
lamia nabil29-Dec-09 23:52
lamia nabil29-Dec-09 23:52 
Questionhow can we impliment online recharge for prepaid mobile in asp.net Pin
arunpal28-Dec-09 23:46
arunpal28-Dec-09 23:46 
AnswerRe: how can we impliment online recharge for prepaid mobile in asp.net Pin
Abhijit Jana29-Dec-09 0:53
professionalAbhijit Jana29-Dec-09 0:53 
AnswerRe: how can we impliment online recharge for prepaid mobile in asp.net Pin
Abhishek Sur29-Dec-09 2:44
professionalAbhishek Sur29-Dec-09 2:44 
AnswerRe: how can we impliment online recharge for prepaid mobile in asp.net Pin
arunpal30-Dec-09 1:17
arunpal30-Dec-09 1:17 
QuestionError:A Generic Error occurred in GDI+ Pin
Udayaraju28-Dec-09 23:05
Udayaraju28-Dec-09 23:05 
AnswerRe: Error:A Generic Error occurred in GDI+ Pin
www.Developerof.NET29-Dec-09 1:10
www.Developerof.NET29-Dec-09 1:10 
QuestionRe: Error:A Generic Error occurred in GDI+ Pin
Udayaraju31-Dec-09 1:24
Udayaraju31-Dec-09 1:24 
AnswerRe: Error:A Generic Error occurred in GDI+ Pin
Abhishek Sur29-Dec-09 2:56
professionalAbhishek Sur29-Dec-09 2:56 
QuestionRe: Error:A Generic Error occurred in GDI+ Pin
Udayaraju31-Dec-09 1:29
Udayaraju31-Dec-09 1:29 
QuestionSSRS Chart issue Pin
siddisagar28-Dec-09 22:57
siddisagar28-Dec-09 22:57 
Questionhelp regarding AJAX Auto complete feature like outlook and gmail Send to TextBox Pin
navrajyadav28-Dec-09 22:32
navrajyadav28-Dec-09 22:32 
QuestionHow to show pdf file in asp.net Pin
kaushik_dass28-Dec-09 22:27
kaushik_dass28-Dec-09 22:27 
AnswerRe: How to show pdf file in asp.net Pin
Abhishek Sur28-Dec-09 22:32
professionalAbhishek Sur28-Dec-09 22:32 
AnswerRe: How to show pdf file in asp.net Pin
sashidhar28-Dec-09 22:44
sashidhar28-Dec-09 22:44 
GeneralRe: How to show pdf file in asp.net Pin
Abhishek Sur29-Dec-09 3:00
professionalAbhishek Sur29-Dec-09 3:00 
GeneralRe: How to show pdf file in asp.net Pin
sashidhar29-Dec-09 17:09
sashidhar29-Dec-09 17:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.