Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Problem with dynamically created checkbox control


Message #1 by jaseiffert@p... on Thu, 24 Oct 2002 20:13:10
I am making a table using the table server control. In the table I am 
putting data into it along with a checkbox at the end of the row. What I 
want to happen is when they click the checkbox it modifies the record in 
the database. I know how to do the code to modify the database, but I am 
having a problem making code to cause the check box to postback to a 
specific function with the record id of the database record. I am making a 
todo list and the check box is in the COMPLETED column. I can set the 
autopostback which will cause the checkbox to post back, but i can't seam 
to figure out how to give it a value (like html checkbox) and to post back 
to a specific function. Actually just getting a value from the postback 
would be all I realy need. I know from making using a hyperlink control 
how to add the function name and a value to the postback javascript that 
it puts in the web page for the browser. It shouldn't be this hard, I must 
be missing something.

Please let me know how to do this.

Thanks,

JefferyS

  Return to Index