checkbox in datalist

M

mahsa

my problem dosent solve yet I want to have
claa void in onclick of my check bov if I us
function setProps ( )

msg.innerText = "llll";

in <datalist>
<ItemTemplate><input type="checkbox" id="cbItem" runat="server" onclick="test()

value='<%#DataBinder.Eval(Container.DataItem, "PartNo")%>' NAME="cbItem"><%#DataBinder.Eval(Container.DataItem, "PartNo")%><td class='item_content' width='83'><input value=4 maxLength='4' size='4' name='"qty_"+<%#DataBinder.Eval(Container.DataItem, "PartNo")%>'>Cartons</td><td class='item_content' width='76' vAlign='center' align='right'><p style='width:50px;'><span id='"subtotal_"+<%#DataBinder.Eval(Container.DataItem, "PartNo")%>'></span></td></ItemTemplate
it works but when i change it to c

<script language="c#"
void test ( )
msg.innerText = "llll"

</script
it say error oon pag
I want if user click on the check box immidiatly textbox of price and quantity will fil

or meybe you have another idea I want to make shoopping cart
 
M

mahsa

I have a datalist that show quantity price and some information in each row when user click oon checkbox it show in quantity 1 and calculate the price with the item he have already in shopping card my broblem is how can I do onselectedchange check bo

I want to have onselectedchange event for the check box in my datalist when I try to use it is makes error becouse the checkbox dynamicly in datalist and it dosent have
this.CheckBox1.CheckedChanged += new System.EventHandler(this.CheckBox1_CheckedChanged)

or if I us
<input type="checkbox" id="cbItem" runat="server" onclick="test(this)

value='<%#DataBinder.Eval(Container.DataItem, "PartNo")%>' NAME="cbItem"><%#DataBinder.Eval(Container.DataItem, "PartNo")%
instead of asp:checkbox it dosent work with my public void in serverside I confuse
I just want to have a check box in datalist that when it checked it call some voi
whats your Idea
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,779
Messages
2,569,606
Members
45,239
Latest member
Alex Young

Latest Threads

Top