Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Pagelet Controls without values set


Message #1 by "Terry Carr" <terry@r...> on Tue, 31 Oct 2000 10:57:05 -0500
This is a multi-part message in MIME format.



------=_NextPart_000_00EC_01C04329.4EA30300

Content-Type: text/plain;

	charset="iso-8859-1"

Content-Transfer-Encoding: quoted-printable



I have an aspx page that I tried breaking the code up into pagelets (one 

for the menu on the left, one for the content in the middle, and one for 

the banners on the right). 



Maybe I shouldn't be designing it this way, or maybe there is a bug, but 

here is what is happening:



    in the content pagelet, I have a dropdownlist with the categories.  

Below the dropdownlist is a datagrid with the products in that category. 

 When an item is selected in the dropdownlist, I have it automatically 

post the form back so I can display the new product list.  I have a 

PageLoad routine in the pagelet that calls the vb routine that  returns 

the ADO+ dataset that will be bound to the datagrid.



This works when not in post back and everything loads correctly.  

However, if it is in postback, the DropDownList does not have a selected 

item.  It's as if it doesn't know that anything is loaded in the list. 



If I take the code from the pagelet and paste it into a simple HTML 

page, it works correctly. 



Can anyone think of a way around this problem.  I don't want to keep the 

code in the main page, since I will have several display modes in this 

Page and the code would get unwieldy.  Includes would be ok, but I don't 

think I can add the pageload routine to the include.







  Return to Index