Click here to Skip to main content
15,891,902 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 7 list boxes in asp .net all are binding if !Page.IsPostBack i have one button of submit when try to submit some of list boxes values are refresh, mean it lost its selected values, can anybody tell what is the simple way to maintain the list box values.

What I have tried:

I have checked the ViewState property as true.
Posted
Updated 19-Jul-16 1:06am
Comments
Kornfeld Eliyahu Peter 17-Jul-16 8:06am    
AJAX
Karthik_Mahalingam 17-Jul-16 8:15am    
post the code.
nilesh sawardekar 17-Jul-16 10:33am    
if you can share your snapshot of code also design view.
shaprpuff 28-Jul-16 1:21am    
I change the list box to check list box it works perfect. I find that One list box after post back work fine but when add second or third then page cannot save selected values of two or three list box items.

1 solution

Hi friend, I thing you did not handle post back correctly. Could you send your code.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900