3
Answers

Panel Control Value Lost during AutoPostBack

Photo of Amit Singh

Amit Singh

8y
256
1
I have applied Panel Control For Inner GridView
When I expand It Show Records and CheckBox Is Checked.
When I Collapse Checkbox Get UnChecked
How to Solve
Plz Help me 

Answers (3)

0
Photo of kritika
NA 53 0 14y
Well ... mine work is done with much line of code....!!! bt i had spend 4 hr for tht... :( Microsoft is grt... Thank you all for valuable response...
0
Photo of kritika
NA 53 0 14y
well i didn't get any error...!!! bt i want check boxes checked when page is postback...!!!
0
Photo of piyush sardhara
NA 195 25k 14y
your check box will check in this

if(!ispostback)
{

//That place your check box will check than not get error??
 

}
0
Photo of kritika
NA 53 0 14y
hi,

well i got the point of my problem..

there is checkboxlist on the master page and checking one of checklist i redirect to another content page..


well i have to allow multiple check for tht checkboxlist..

upto now i had tried with session ... 

like,,

i loop through the checklist item then i found the checkd value tht will be stored into session..

tht session i use into master page's load event ... whr i again loop through the checklist is the value of session match to the checklist value if matched then make it selected..

well m confused for whn i cheking multiple list then how to make tht list checked ...?

0
Photo of John Penn
NA 3.1k 134.5k 14y
Is ViewState enabled on the master and content pages?
0
Photo of Raja Krishnamurthy
NA 1.2k 57k 14y
Could you post your code?
0
Photo of kritika
NA 53 0 14y
hello Raja,thank you for ur response


well m using selected index changed event of checkboxlist control ...and after checking the checkbox i redirect to next page....

yes at that moment the page's load event fire the ispostback event true and the checkbox gets cleared..

well my checkboxlist control is on master page and m redirecting to the content page...

help me out
0
Photo of Vijay Yadav
NA 1.7k 538k 14y
Hi Kritika,
Just check the below link it may help you!
http://forums.asp.net/p/1419898/3145776.aspx
0
Photo of Raja Krishnamurthy
NA 1.2k 57k 14y
Hi Kritika,

Check if you are checking for IsPostback in page_load while loading the checkbox lists. That could be a reason why your checkboxlist items gets cleared.

HTH