Tamer_Ahmed Posted May 11, 2005 Posted May 11, 2005 hi all, i create a simple javascript function function my(id) { document.getElementById('Label1').innerText = id; } and i'll add it to onclick event for checkbox exist on datalist there problem here that the parameter that i want to pass it to the function is this <%#Container.DataItem("ID")%> and it's not work the parser always throw error can anybody help [:'(] Regards Quote
mark007 Posted May 11, 2005 Posted May 11, 2005 Could you elaborate? Is your error an asp.net error or a client side javascript error? Quote Please check the Knowledge Base before you post. "Computers are useless. They can only give you answers." - Pablo Picasso The Code Net
Tamer_Ahmed Posted May 11, 2005 Author Posted May 11, 2005 it's a .net error saying Literal content ('')" >') is not allowed within a 'System.Web.UI.WebControls.CheckBox'. :confused: Quote
mark007 Posted May 12, 2005 Posted May 12, 2005 Ok, what HTML and CodeBehind are you using with the checkbox? Quote Please check the Knowledge Base before you post. "Computers are useless. They can only give you answers." - Pablo Picasso The Code Net
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.