Click here to Skip to main content
15,919,434 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
How to retrieve sql table data using check box click event..i need jquery and ajax code
Posted
Comments
Sibasisjena 11-Feb-14 5:12am    
What have you tried so far ?
[no name] 11-Feb-14 5:30am    
<div class="refaine123">
<div class="af-experiance"><span class="search-af-af-11">Location</span></div>
<div class="af-exp-dtl-1">
<input name="sa" type="checkbox" runat="server" id="chk_div" value="Delhi" />
Delhi </div>
<div class="af-exp-dtl-1"><input name="sa" type="checkbox" value="Ernamkulam" id="chk_kochi" runat="server" />
Ernamkulam </div>
<div class="af-exp-dtl-1"><input name="sa" type="checkbox" value="Mumbai" />
Mumbai </div>
<div class="af-exp-dtl-1"><input name="sa" type="checkbox" value="Chennai" />
Chennai </div>
<div class="af-exp-dtl-1"><input name="sa" type="checkbox" value="Bangalore" />
Bangalore </div>
<div class="af-exp-dtl-1"><input name="sa" type="checkbox" value="Others" />
Others </div>

<asp:Button CssClass="af-exp-dtl-2" ID="Button1" runat="server" Text="Submit"
BorderStyle="None" onclick="Button1_Click" />

</div>

above program my check box details when i click the particular chck box i wanted to retriew particular column from sql datbase
Sibasisjena 11-Feb-14 5:13am    
How do you want to fetch data using Webmethod /Wcf service ?
[no name] 11-Feb-14 5:30am    
using webmethod
Sibasisjena 11-Feb-14 6:03am    
Please try the given links, if you will face any problem then reply me.

refer here...


stackoverflow

aspsnippets
 
Share this answer
 
v2
Put all the ajax codes in side a javascript function and call the function on the check box onclick .

HTML checkbox onclick called in Javascript[^]
Call javascript on checkbox onclick[^]


Please check the following links for Ajax call:
How to send and retrieve data from web method using JQuery Ajax Call?[^]

Call a web method using jQuery Ajax[^]
 
Share this answer
 
v2

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