Click here to Skip to main content
15,883,901 members
Please Sign up or sign in to vote.
1.67/5 (6 votes)
See more:
I have a C#.net project.In that I have a gridview to display personal details from the database.This gridview contains a checkbox field.There is a textbox and delete button outside the gridview.
My requirement is,when I checked rows in a gridview,their id's should be displayed, separated by commas, on the textbox outside the gridview.When I unchecked,it's id should be removed.When I click on the delete button,the details whose ids on the textbox should be deleted. All these activities should done by javascript.Please help.
Posted
Updated 19-Sep-12 2:14am
v6
Comments
DaveAuld 19-Sep-12 7:21am    
What have you tried? We don't give anything.
Joan M 19-Sep-12 7:54am    
Improve your question, without more details this is impossible to answer.
Tell us what you've tried till now...
[no name] 19-Sep-12 8:18am    
You still have not shown what you have tried to do for yourself.
Sergey Alexandrovich Kryukov 19-Sep-12 20:09pm    
Help with what? This is not a question. Did you notice that you already have 5 down-votes? Can you guess why? :-)
--SA

1 solution

You have got 5 down vote already. But I will give you a pointer

HTML
<table>
   <tr>
       <td><iNPUT TYPE='checkbox' ID='Checkbox_1' onclick='document.getElementById("Text_1").value=1'></td>
       <td><iNPUT TYPE='text' id='Text_1' value=''></td>
   <tr>
</tr></tr></table>


now, how you would achieve it in pro-grammatically is up to you
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900