checkbox problem
-
hi, i tried to use check box in asp.net. well when i run the program, i checked the checkbox but when it process, it is taking checkbox as unchecked. Why this happens ? How to avoid this ?
suchita
You are surely doing something wrong. Have a look here with lots of sample examples: CheckBox Class[^]
-
hi, i tried to use check box in asp.net. well when i run the program, i checked the checkbox but when it process, it is taking checkbox as unchecked. Why this happens ? How to avoid this ?
suchita
SayamiSuchi wrote:
well when i run the program, i checked the checkbox but when it process, it is taking checkbox as unchecked.
I can't understand what you post. Explain little more clearly.
-
hi, i tried to use check box in asp.net. well when i run the program, i checked the checkbox but when it process, it is taking checkbox as unchecked. Why this happens ? How to avoid this ?
suchita
Are you assigning the value of the checkbox outside of an if(!IsPostBack) statement? If so your view state value is being wiped. If you are using DataBinding, make sure your DataBind call is wrapped inside of an if(!IsPostBack) as well.
Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost
-
Are you assigning the value of the checkbox outside of an if(!IsPostBack) statement? If so your view state value is being wiped. If you are using DataBinding, make sure your DataBind call is wrapped inside of an if(!IsPostBack) as well.
Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost
-
hi, i tried to use check box in asp.net. well when i run the program, i checked the checkbox but when it process, it is taking checkbox as unchecked. Why this happens ? How to avoid this ?
suchita
is the checkbox's enableViewState false?
-
hi, i tried to use check box in asp.net. well when i run the program, i checked the checkbox but when it process, it is taking checkbox as unchecked. Why this happens ? How to avoid this ?
suchita
Hi Suchita, Please ensure that to put IsPostback condition in page load event.when u call button click event, it'll be postback to the same page and page load then button click events fires. so check it and keep the condition.
Rajendra Prasad Panchati .Net/Sharepoint Software Engineer. Hyderabad.
-
Hi Suchita, Please ensure that to put IsPostback condition in page load event.when u call button click event, it'll be postback to the same page and page load then button click events fires. so check it and keep the condition.
Rajendra Prasad Panchati .Net/Sharepoint Software Engineer. Hyderabad.