1

I need to bind data to a html input type checkbox.. it is inside a gridview and this is my code for checkbox

<input type="checkbox" value='<%# Eval("ProjectId") %>' oninit="onl(this)" 
checked="<%# Eval("CanBeInherited") %>"  onclick="showvalue(this)"  />

Is this possible? or do i need to use other means of changing the checked property of a checkbox..

0

1 Answer 1

1

With

runat="server"

and

id="CheckBoxInheritance"

it should run.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.