Hi All,good Morning,
below is my html code
.
Below code i am trting to get checkbox checked status dynamically but i am getting object refernce not in set Pls provide related code
for (int i = 0; i <= 4; i++)
{
CheckBox chk = (CheckBox)this.FindControl("CheckBox"+i);
if (chk.Checked)
{
}
else
{
}
}
Thanks VeKaT G


Midhun TpRank #388 · 6.5K reputationPosted Aug 17, 2017, 11:10 PM EDT
Midhun TpRank #388 · 6.5K reputationPosted Aug 17, 2017, 9:06 PM EDT
Venkat GovindRank #2,911 · 494 reputationPosted Aug 17, 2017, 9:22 PM EDT
Object reference not set to an instance of an object.
If you have any other option to get ?Midhun TpRank #388 · 6.5K reputationPosted Aug 17, 2017, 9:27 PM EDT
Venkat GovindRank #2,911 · 494 reputationPosted Aug 17, 2017, 10:53 PM EDT