Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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 12-Mar-12 0:39am
Zukiari1.5K
Comments
pashad at 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
good
Please Sign up or sign in to vote.

Solution 1

You need to examine the ViewState property:
 
ViewState and Postback[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Hi there,
This is the property of asp.net web application that after refreshing the page all the variables or controls is reassigned..
 
Use Update Panel to Avoid this error..
 
all the best..
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 6,045
1 DamithSL 4,611
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,310


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 12 Mar 2012
Copyright © CodeProject, 1999-2014
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