Hi amit,
I have created a sample that full fill your requirement
HTML
<div align="center">
<table id="tblCheckBoxLists">
</table>
<asp:TextBox ID="txtHobby" runat="server" />
</div>
<div>
<script type="text/javascript">
$(function () {
$.ajax({
type: "POST",
url: "Default.aspx/GetHobbies",
data: '{}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (r) {
var table = $("[id*=tblCheckBoxLists]");
var i = 1;
table.append("<thead><th>R</th><th>C</th><th>Hobbies</th></thead>");
$.each(r.d, function () {
//debugger;
table.append("<tr><td><input id=cbR" + i + " type='checkbox' onclick=CheckedHobby(this) name=cbR" + i + "></></td><td><input id=cbC" + i + " type='checkbox' onclick=CheckedHobby(this) name=cbC" + i + "> </></td><td>" + $(this)[0].Text + "</td></tr>");
i++;
});
}
});
});
function CheckedHobby(checkbox) {
if (checkbox.checked) {
$('[id*=txtHobby]').val($(checkbox).closest('tr').find('td').eq(2)[0].innerHTML);
}
else {
$('[id*=txtHobby]').val('');
}
}
</script>
</div>
PageCode
[WebMethod]
public static List<ListItem> GetHobbies()
{
string constr = ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
SqlConnection con = new SqlConnection(constr);
List<ListItem> hobbies = new List<ListItem>();
string query = "SELECT HobbyId,Hobby FROM Hobbies";
SqlCommand cmd = new SqlCommand(query, con);
con.Open();
cmd.CommandType = CommandType.Text;
using (SqlDataReader sdr = cmd.ExecuteReader())
{
while (sdr.Read())
{
hobbies.Add(new ListItem
{
Value = sdr["HobbyId"].ToString(),
Text = sdr["Hobby"].ToString()
});
}
}
con.Close();
return hobbies;
}
ScreenShot
Hope this works for you.