How to add a check box in a .aspx page.
I had used a database. and i read data from the database successfully.
And now the readed data is in data table “dt”. And i added this statement
if (dt.Rows[0]["IsActive"].ToString() == "True")
if the condition is true, Then the check box will be checked?
but i didn’t get. How it will get?
chkActive is the id of your checkbox. Assuming the checkbox was already in the controls list in the page.
You can add a checkbox to your page using the following code