Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: ASCX pages in ASPX and VIEWSTATE


Message #1 by "J Donahue" <jdonahue@f...> on Tue, 18 Jun 2002 21:00:44
I have one ASPX page that calls multiple ascx pages.  Each ascx page 
contains several <asp:textbox runat="server"> and <input runat="server"> 
types.  At the bottom of each ascx page is a button that simply walks the 
user to the next ascx page to be loaded within my ASPX page. 

Are the <input> and <textbox> items of each ascx page stored as part of 
the ASPX viewstate??  I mean...if I get some input in ascx1 and then go 
to ascx2, are the ascx1 <input> & <textbox> items maintained as part of 
the viewstate so that if I go back to the ascx1 page, the values are 
automatically there???  They are all being loaded within the same ASPX 
page.  Sometimes it seems to work and sometimes not. 

I guess what I'm trying to ask is, do I need to save the ascx1 items as 
session variables before loading the ascx2 page so that if I come back to 
the ascx1 page later, I can show the ascx1 values?  Or, are the ascx1 
items automatically saved as part of the ASPX viewstate (no matter which 
particular ascx page is visible) and so I don't have to worry since they 
will automatically be shown with their original values?? 

I know viewstate isn't maintained between pages....but I'm actually on 
the same aspx page but just loading different ascx pages so, to me, I'm 
on the same page. 

Thanks!!!!! 

  Return to Index