Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Pattern recommendation

Reply
Thread Tools

Pattern recommendation

 
 
Derek Fountain
Guest
Posts: n/a
 
      10-04-2009
I have a basic website requirement which I'm looking to implement using
a suitable pattern. The website can be seen as a set of 'wizards' - the
user chooses the wizard they want, then are presented with sequence of
fairly straightforward web pages each of which fetches a small amount of
information from the backing data model. They click next, next, next,
occasionally offering additional input via a radio button selection or
some such. The final page will have an 'exit' button or link.

So, all rather straightforward, but I need to do a lot of these
'wizards'. Many dozens, probably, with each one having between 3 and 30
steps. I therefore want to keep this as efficient as possible. Speed of
the website execution is irrelevant; what matters is the speed of
development and ease of testing. I need to be able to add pages to the
wizards quickly and easily. The less code I have to write the better.

Just looking through the pattern pages on MSDN, they seem to concern
themselves with supporting full featured web applications. I don't
really need that, and MVC seems overkill for my requirements.

Can anyone such any patterns that might point me the right direction?

--
Aches and pains at your desk? Try a little exercise:
http://www.daily-exercise.com/
 
Reply With Quote
 
 
 
 
Mr. Arnold
Guest
Posts: n/a
 
      10-04-2009

"Derek Fountain" <> wrote in message
news:4ac8bfa1$0$2492$...
>I have a basic website requirement which I'm looking to implement using a
>suitable pattern. The website can be seen as a set of 'wizards' - the user
>chooses the wizard they want, then are presented with sequence of fairly
>straightforward web pages each of which fetches a small amount of
>information from the backing data model. They click next, next, next,
>occasionally offering additional input via a radio button selection or some
>such. The final page will have an 'exit' button or link.
>
> So, all rather straightforward, but I need to do a lot of these 'wizards'.
> Many dozens, probably, with each one having between 3 and 30 steps. I
> therefore want to keep this as efficient as possible. Speed of the website
> execution is irrelevant; what matters is the speed of development and ease
> of testing. I need to be able to add pages to the wizards quickly and
> easily. The less code I have to write the better.
>
> Just looking through the pattern pages on MSDN, they seem to concern
> themselves with supporting full featured web applications. I don't really
> need that, and MVC seems overkill for my requirements.
>
> Can anyone such any patterns that might point me the right direction?
>


I did the wizard thing using MVP and with a session object between the UI
and presenter and passing the session object between pages. I like MVP as
it's light and flexible. You can even use a MVP pattern for a Web client non
UI with a presenter for a Web service as an example, since an interface is
being used.

The key here I like is to keep the UI as dumb as possible and let the
presenter control the UI and make the decisions.

What is Model -View- Presenter?

MVP is a software pattern considered a derivative of the
Model-view-controller.

http://en.wikipedia.org/wiki/Model_View_Presenter


MODEL-VIEW-PRESENTER

http://www.polymorphicpodcast.com/

click 'Shows' and located at page 6

click 'Design Patterns Bootcamp: Model View * Patterns*

view parts 1-5



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4479 (20091004) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      10-04-2009
You could also check the Wizard control :
http://www.15seconds.com/Issue/060706.htm
(though 30 seems quite a lot)

--
Patrice

"Derek Fountain" <> a écrit dans le message de
news:4ac8bfa1$0$2492$...
>I have a basic website requirement which I'm looking to implement using a
>suitable pattern. The website can be seen as a set of 'wizards' - the user
>chooses the wizard they want, then are presented with sequence of fairly
>straightforward web pages each of which fetches a small amount of
>information from the backing data model. They click next, next, next,
>occasionally offering additional input via a radio button selection or some
>such. The final page will have an 'exit' button or link.
>
> So, all rather straightforward, but I need to do a lot of these 'wizards'.
> Many dozens, probably, with each one having between 3 and 30 steps. I
> therefore want to keep this as efficient as possible. Speed of the website
> execution is irrelevant; what matters is the speed of development and ease
> of testing. I need to be able to add pages to the wizards quickly and
> easily. The less code I have to write the better.
>
> Just looking through the pattern pages on MSDN, they seem to concern
> themselves with supporting full featured web applications. I don't really
> need that, and MVC seems overkill for my requirements.
>
> Can anyone such any patterns that might point me the right direction?
>
> --
> Aches and pains at your desk? Try a little exercise:
> http://www.daily-exercise.com/


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Design Pattern and Python: Any book recommendation? Your view? Anthony Kong Python 8 11-04-2011 08:11 PM
May I have a example of design pattern of "composite", I still feel fuzzy after reading book of Addison-Wesley's"design pattern " jones9413@yahoo.com C++ 1 08-31-2007 04:09 AM
documents related to factory design pattern and Abstract foctory pattern. sunny C++ 1 12-07-2006 04:26 AM
boolean endsWith(String s, Pattern pattern) lepikhin@gmail.com Java 17 11-16-2005 10:31 AM
design pattern book recommendation Yamin C++ 3 09-25-2003 02:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57