I would like to divide "Add New Product" process into 4 steps.
Step 1: Personal data
Step 2: Product Info
Step 3: Upload photo
Step 4: Preview
Which approach is better... to use multiple panels or separate pages for each stepp?
Thank You!Separate pages, I think, is easier for you to maintain it.
I believe panels are a better way when it comes to maintaining.
not only it is faster but also you can take advantage of the viewstate (that is any information enetered in step 1 will still be available when you are on step 2.
in seperate pages approach you would need to - in some way (sessions, etc.) - store and send your vaiables to the second page.
with panels you can treat your form as if it is on one page (which actually it is..)
hope it helps..
i would use web user controls. Similar to includes from the old asp days. Just create one aspx page (ie default.aspx) and then load the web user control based on the querystring/user input.
Panels are okay for something small, but then it is hard to work with. With seperate pages you are writing a lot of extra code.
0 comments:
Post a Comment