Steven,
A clear response, thank you. Unfortunately it was more or less what I was
expecting.
> If you do need to use databinding to populate controls in Wizard, I think
> you may consider put a databound template control inside Wizard control's
> step so as to wrapper other controls that need databinding. How do you
> think?
You suggested putting a databound control inside the Wizard steps and that
is actually what I was hoping to avoid.
Here's the problem...
Functionally, I want to break up the process of entering the data into steps
since there are too many fields for the user to deal with at one time - the
UI would be much too confusing and cumbersome. So the Wizard is conceptually
a perfect solution.
Programmatically, I don't see a good design pattern. Each step would have to
have its own databound control, eg.., a FormView or DetailView. Each of these
has to be bound to a datasource. However, I can't use a single datasource for
the entire Wizard since, although all FormViews could share the Select
statement, they each have to have their own Update statement since each would
only have its own variables (fields). I think this approach would also mean
that I have to update the record in multiple steps, one for each Wizard step.
I'd like to use the Wizard to collect the data and then do a single Update
when the user clicks "Finish." I know I can do this using unbound input
fields and writing code to collect the data values from the Wizard,
constructing a record and doing the update manually. I was hoping to used the
bound data model.
Marc
Steven Cheng - 10 Mar 2008 03:32 GMT
Hi Marc,
Yes, putting an additional databound control here is only to make each
wizard step template to able to use the datasource control. That would make
the design not quite elegant. I'm afraid so far the Wizard control can not
quite support databinding with datasource control or event bind fields in
all template with a single datasource control. So far what I can get to
make this work is do all the data/fields collection in our own code and
then call Data Access class(or datasource control ) to programmatically do
the update. I think you may already tried this or thought this to be a
backup plan?
Best regards,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we
can improve the support we provide to you. Please feel free to let my
manager know what you think of
the level of service provided. You can send feedback directly to my manager
at: msdnmg@microsoft.com.
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: =?Utf-8?B?TWFyY0c=?= <JoePtfsk@newsgroup.nospam>
>References: <2DD78A00-7CC2-4433-AFC5-9EB440A1FA9A@microsoft.com>
<6X0Fqa$fIHA.6616@TK2MSFTNGHUB02.phx.gbl>
>Subject: RE: databind asp.net wizard control
>Date: Fri, 7 Mar 2008 00:39:01 -0800
>Steven,
>
[quoted text clipped - 31 lines]
>
>Marc