Do you make pages that have different 'modes' ?

M

Matt Swift

I would like to know, how many people when designing asp.net apps, break
down pages into components (user controls) and use them repeatedly in
different panels etc.

We tend to make parts of a page visible/invisible using a property or method
in the codebehind and then make one page seem like it's actually a number of
differnet (but similar) pages, when different page-functionality would
usually continue quite smoothly and use a lot of the same user controls.

Is this a good way of working with asp.net. Lately I'm finding it may not
be the best approach for using the UIPAB (User Interface Process Application
Block) as the logic and actually asp.net components need to be seperated as
much as possible.

Any thoughts on how you guys might do similar stuff would be appreciated.

Matt Swift
 
R

Robert Koritnik

We ddi a project where the whole ASP.NET application used ONLY one aspx page
and it had all User controls on it. You'll ran into a problem arround
ViewState. You can get arround this by dynamicly loading UserControls, but
you'll hvae to load them inside Initialize and be careful about
ProcessPostaBackData...

It's possible, but I wouldn't reccomend it. You get a page with a very
complicated state. I reccomend you to use more pages with its own state
management.

If you intend to use UIPAB, be prepared. It's sounds great (and it is), but
it's not as easy to use when it comes to a normal complicated web
applicatation that is very dynamic especcialy in ways of navigation and
dynamic action execution.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top