Users Pricing

forum

Home Forums How to found CheckBox ID – MindStick

How to found CheckBox ID

Anonymous User 1899 26 Jan 2015

I want to check a checkbox after finding that it is checked in database. I'm trying this:

string chkboxbit = String.Empty;
CheckBox cb = new CheckBox();
chkboxbit = "ct100$ContentPlaceHolder1_chk" + item+ "" + i;
cb = (CheckBox)Page.FindControl(chkboxbit.ToString());
cb.Checked = false;

But I'm getting cb value null on debugging.


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md