Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiview in an update panel

Status
Not open for further replies.

davedizzle15

Technical User
Feb 28, 2007
14
US
is it possible in microsoft visual web developer to create something in multiview which is also inside an update panel. I have 3 separate forms that are in 3 separate views in the multiview portion, but all of this is inside an update panel and i cant get it to show when i run the website.
 
If you are talking about the AJAX update panel, you can have more than one on a single page..

As forms are very similar to logical boundarys, I don't know if you will be able to post from one to the next, but you can definitly have one updatepanel trigger a partial postback to another.

HTH

Rob
 
1 thing to note about multiview controls. the different views no nothing about each other. so you can't pass values from view1 to view2. In this instance you either need a wizard control, or you need to maintain the visibility for a set of asp:panels.

to answer your question: yes, the multiview can be wrapped within an update panel. the simplest setup is to wrap an updatepanel around the mulitview control.
Code:
<asp:updatepanel>
   <asp:multiview>
      <asp:view />
      <asp:view />
      <asp:view />
   </asp:multiview>
</asp:updatepanel>
You can also place an updatepanel within each multiview. in this instance you won't be able to navigate between views in an ajax style. this would require a full postback.
Code:
<asp:multiview>
   <asp:view>
      <asp:updatepanel />
   </asp:view>
   <asp:view>
      <asp:updatepanel />
   </asp:view>
   <asp:view>
      <asp:updatepanel />
   </asp:view>
</asp:multiview>
what you cannot do is this
Code:
<asp:multiview>
   <asp:updatepanel>
      <asp:view />
      <asp:view />
      <asp:view />
   </asp:updatepanel>
</asp:multiview>

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top