[thelist] Dropdown list not retaining selected value

Himani Khisti hkhisti at oas.co.in
Sat Jun 11 04:46:48 CDT 2005


Hi ,

I got root of the problem. Basic structure of the page has the dropdown on
panel2. So everytime the page is loaded the dropdown on panel2 gets loaded,
even though it was moved to Panel1, on previous post. On postbacks,
selectedIndex value gets lost as the dropdown is also lost.
So, in this situation Volkan's approach worked. I have placed dropdown on
both panels and play with their visibility, instead of moving it.

Thank you so much all of you guys... the replies were indeed prompt!!
Himani K

----- Original Message ----- 
From: "Peter Brunone (EasyListBox.com)" <peter at easylistbox.com>
To: <thelist at lists.evolt.org>; <thelist at lists.evolt.org>
Sent: Friday, June 10, 2005 8:20 PM
Subject: Re: [thelist] Dropdown list not retaining selected value


>
> Also, is there any chance that this is a simple case of accidental
re-binding (when really you should only databind before postback if you want
your selections to persist)?
>
>  From: "Robert Vreeland" vreeland at studioframework.com
>
> How are you executing the move? Can you post the code?
> ----- Original Message ----- 
> From: "VOLKAN ÖZÇELIK"
> To:
> Sent: Friday, June 10, 2005 9:02 AM
> Subject: Re: [thelist] Dropdown list not retaining selected value
>
> Hi,
>
> I don't know the cause of the problem, and I have not coincided
> something similar. But it appears that the viewstate does not persist
> correctly. This may be an MS bug which has not been caught yet.
>
> As an alternative approach, you may have two panels and play with
> their visibility server-side, instead of moving an entire panel along.
> It will be somewhat markup duplication, but will solve the problem
> imho.
>
> HTH,
> Volkan.
>
> On 6/10/05, Himani Khisti wrote:
> > Hi List,
> >
> > I'm working on a ASP.NET application.
> > I'm facing a very weird problem.(Every developer feels this before he
> finds solution!) I have a dropdown list on a panel (panel2) on extreme
right
> (in 2nd of
> -- 
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !



More information about the thelist mailing list