Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using update panel in my aspx page. I Have selected checklistbox.but Checklistbox1.item[i].selected value always shows me false.

I have tried:

XML
<Triggers>
     <asp:PostBackTrigger ControlID="btnSave" />
     </Triggers>


XML
<Triggers>
     <asp:PostBackTrigger ControlID="chklistDays" />
     </Triggers>


but still I can not get true for my selected checklistbox.
Posted
Comments
itskvini 25-Sep-12 2:14am    
Where is your CheckBoxList placed?
Is it inside Update Panel or outside of it?
oliver grace 25-Sep-12 2:51am    
inside update panel
itskvini 25-Sep-12 5:31am    
Why are you using PostBackTrigger. It is used to do full postback.
Can you post some more code for better understanding.

u write this syntx...

C#
if(chkbox.items[i].selected==true)
{
}
else
{
}
 
Share this answer
 
v2
Comments
oliver grace 25-Sep-12 1:51am    
I declaring like this only but chkbox.items[i].selected always shows me false.
jaydeep_vekariya 25-Sep-12 2:03am    
in detail u tell me how exactly u write code and how it is working?
You may have the same issue as is described in this forum post: http://forums.asp.net/t/1321927.aspx/1[^]
 
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