Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 30th, 2003, 09:36 AM
Authorized User
 
Join Date: Dec 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Q's about application design

Hi,

I've just got a few questions about application design I'd like to clear here....

1. Am I right in thinking that using the 3 tier application u could have one structure page, and just loads of little user controls and code behind files processing the application?

2. I want certain parts of my websites to be accessible to certain levels of registered users... here's a few scenario:
I want normal non paying resgistered users to have access to a certain user controls not just whole pages... for example, a registered users will be able to see the all the navigation links as active where as non registered users will see dimmer or greyed out text and the link won't be a proper clickable hyperlink.

3. How much control does ASP.NET have over styles? Would it be a better idea to store styles in a database if users can change certain colours? and certain colours change depending on whether users are registered or not?

So i'm right in thinking that the three tier application - presentation code data has the 'style' in the data part.

i'm thinking of a four tier application here: structure, code, data, style??

I think thats it for now.

Thanks
Deian

 
Old December 30th, 2003, 12:26 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

1. Usually, the tiers referred to by "n-tier" achitecture are things like: presentation (UI); business logic; data access; communications. The n-tier architecture concept is something larger than the idea of code separation in .net although using code-behind does play towards it with the general idea of presentation and logic being physically separated. Using user controls is more of a .net technology concept that promotes code/component re-use.

2. Handling security on this level of granularity is not something that .net is capable of out of the box to the best of my knowledge. You can use the built-in security features to restrict files or directories, but you'll have to manually to checks and set states for things like "user level x can not click on this link in this control". I've handled plenty of these scenarios and doing it in .net isn't much different conceptually from any other intelligent web application. You'll have to store some data somewhere specifying user access level and change properties on your site's controls accordingly.

3. .net has lots of control over styles. All controls have style properties. When it comes to building a web application that needs dynamically changing styles, there are several ways to approach a solution. You could build everything with CSS class names and build multiple stylesheets or a dynamic stylesheet for changes. Or you can use the built-in style attributes of the controls and change those as you go. I am a fan of CSS because it optimizes the HTML output of the controls. Instead of having a single control output all its styles every time it's drawn, it only has to write out a single CSS class attribute. This reduces the HTML weight of the page. Of course, if you need to be able to allow users to change lots of settings you might not be able to use this approach.

Peter
------------------------------------------------------
Work smarter, not harder.





Similar Threads
Thread Thread Starter Forum Replies Last Post
IT Asset Tracking System Application Design Help Dipendra BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 1 March 27th, 2006 10:38 PM
IT Asset Tracking Application Design Help Dipendra VB Databases Basics 0 March 26th, 2006 07:41 AM
Exception design on Boxoffice Sample Application? dleal BOOK: Professional Java Development with the Spring Framework 1 November 11th, 2005 06:31 AM
need guidelines for application design madhukp ASP.NET 1.x and 2.0 Application Design 11 May 7th, 2005 02:57 AM
csv file data source q's kap260 Classic ASP Databases 0 August 4th, 2003 04:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.