hello to all,
m using checkboxlist on mater page
when checking the multiple list the page will redirect to the next page with the selected data.
my problem is when page is posted back the selected checkboxlist item gets cleared...!!!
how to retain the selection back..?
thank you
Loading
kritikaPosted Apr 8, 2011, 9:00 AM
kritikaPosted Apr 8, 2011, 7:42 AM
piyush sardharaPosted Apr 8, 2011, 7:19 AM
if(!ispostback)
{
//That place your check box will check than not get error??
}
kritikaPosted Apr 8, 2011, 6:46 AM
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 ...?
Guest UserPosted Apr 7, 2011, 10:36 AM
Raja KrishnamurthyPosted Apr 7, 2011, 10:29 AM
kritikaPosted Apr 7, 2011, 10:09 AM
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
Vijay YadavPosted Apr 7, 2011, 9:54 AM
Just check the below link it may help you!
http://forums.asp.net/p/1419898/3145776.aspx
Raja KrishnamurthyPosted Apr 7, 2011, 9:53 AM
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