Click here to Skip to main content
13,043,865 members (48,236 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I'm using some dropdown lists in my project in which the first item is 'select'. If the application is running on Windows XP system when a button is clicked the dropdownlist selected item is automatically changes to the first value and I'm not getting the desired output. What can I do for it? Anyone pls help me...

Thank you.
Posted 11-Mar-12 23:39pm
pashad 12-Mar-12 5:43am
Your page is getting refreshed that's the reason. Simply use update panel to avoid page refresh.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You need to examine the ViewState property:

ViewState and Postback[^]
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Hi there,
This is the property of web application that after refreshing the page all the variables or controls is reassigned..

Use Update Panel to Avoid this error..

all the best..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 12 Mar 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100