By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,953 Members | 1,611 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,953 IT Pros & Developers. It's quick & easy.

Looking for opinion on code size for presention tier .net application

P: n/a
Looking for opinion on code size for presention tier application.

I have created a user-control that has a fairly complex datagrid which
includes localization, custom paging, sorting, filtering, searching,
caching, options to add, edit, and delete record, and then enabling and
disabling links inside the datagrid based on different conditions.
Everything is working fine now. I have hand-coded everything and the total
length of my code-behind file is around 1900 lines. My code-behind file
contains only presentation logic. No other code is there in my code-behind
file. Data-access logic and business logic code are totally seperate and are
located in different assemblies. My code-behind file doesn't even contain
designer code. All designer code are in the ASCX file. So my question is, is
1900 lines of code too large for presentation tier code ? I have to admit,
there is also a fair amount of comments in the code to describe what I am
doing. Also in the feature, the size of this file will increase, cause I
will have to implement some security features. Well there would be a
seperate "security library" but my code will have to access it, so
additional lines of code will be added.
I will really like to hear from senior programmers and what you have to say
about this. I am just worried, is this a bad thing that my presentation tier
code is turning out to be so large ? I really don't know what to do cause
there is so much logic on my presentation tier that I need to implement.

Really looking forward for some replies.


Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.