|
-
March 10th, 2009, 10:59 AM
#1
<asp:checkbox> vs <input type="checkbox">
HI All,
I need to be able to assign a value to my checkbox, so that when the user checks it, the c# code will know what value has been checked. In a plain html tags we can use value attribute to assign a value i.e., <input type="checkbox" id="chk1" value="1">. But <asp:checkbox doesn't have a value field, and i found out that i can use <asp:checkboxlist> & <listItem>.
The actual value is coming from the database like this
[code]
<%#DataBinder.Eval(Container.DataItem, "FullName") %>
{/code]
When I run the page i get databounding expressions are only supported on objects that have a databinding event....... Is there any way around to this problem.
THanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|