I'd like to use a multi-view in a composite control, but am
unsure how
to go about doing this. Right now I have the control set up
to take in
data. When the data is submitted, I'd like the control to
show a
response message and hide the form. I'm just not sure how
to go about
rendering the control though. Normally I render the controls
in the
RenderContents method, but am unsure how to go about doing
this with the
multi-view. Do I call the Render method on the multi-view?
I'm just not
sure.
Here's the basic control layout.
MultiView
FormView
Form Controls
ResultsView
Thank You Note
Right now I'm overriding RenderContent, with code that
looks like:
writer.Write( "<p><label
for=''>Name</label><br />",
nameTextBox.ClientID );
nameTextBox.RenderControl( writer );
writer.WriteLine( "</p>" );
Should I actually use the MultiView or simply alter my
content
rendering?
Thanks,
Brian
===================================
This list is hosted by DevelopMentorŪ http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|