---
title: "How to found CheckBox ID"  
description: "How to found CheckBox ID"  
author: "Anonymous User"  
published: 2015-01-26  
updated: 2015-01-27  
canonical: https://www.mindstick.com/forum/12903/how-to-found-checkbox-id  
category: "asp.net"  
tags: ["c#"]  
reading_time: 1 minute  

---

# How to found CheckBox ID

I want to [check](https://yourviews.mindstick.com/story/2248/never-forget-to-check-these-specifications-before-buying-a-mobile-phone) a [checkbox](https://www.mindstick.com/articles/291/how-should-use-checkbox-control-in-vb-dot-net) after finding that it is checked in database. I'm [trying](https://answers.mindstick.com/qa/93698/6-mistakes-couples-are-trying-to-save-money) 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](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) [null](https://www.mindstick.com/forum/33922/how-to-use-null-coalescing-operator-in-c-sharp) on debugging.

## Replies

### Reply by Anonymous User

Hi jay

I got it... and it works fine...

```
chkboxbit = "chk" + item + "" + i;ContentPlaceHolder cph = (ContentPlaceHolder)this.Master.FindControl("ContentPlaceHolder1");cb = ((CheckBox)cph.FindControl(chkboxbit));if (cb != null)    cb.Checked = false;
```

Thnks to all for their effort. and Thanks Kyojimaru.


---

Original Source: https://www.mindstick.com/forum/12903/how-to-found-checkbox-id

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
