Click here to Skip to main content
15,907,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have 4 check box. all related to salary about employers.when i click check box first need to display 6000 to 1 lakh amount present salary employers..there have any solution? in stored procedure i have created 2 parameter for each check box ..there have any shortest method?



XML
<div class="refaine123">
<div class="af-experiance">Salary {Annual}</div>
<div class="af-exp-dtl-1"><input name="sa" type="checkbox" value="1 Lakh" id="one_lakh"  runat="server"/> 600000 - 1
    Lak</div>
<div class="af-exp-dtl-1"><input name="sa" type="checkbox" value="5 Lakh" id="five_lakh" runat="server" />  1 Lak - 5
    Lak</div>
<div class="af-exp-dtl-1"><input name="sa" type="checkbox" value="25 Lakh" id="twnty_lakh" runat="server" /> 5 Lak - 25
    Lak</div>
<div class="af-exp-dtl-1"><input name="sa" type="checkbox" value="50 Lakh" id="fifty_lakh" runat="server"  /> 25 Lak - 50
    Lak</div>
<div class="af-exp-dtl-1"><input name="sa" type="checkbox" value="1 Crore" id="one_crore" runat="server" />&nbsp; 50 Lak
    -1 Cr</div>
<div class="af-exp-dtl-1"><input name="sa" type="checkbox" value="1 Crore+" id="one_more" runat="server" /> 1 Cr +</div>

<div class="af-exp-dtl-2" id="Div2" runat="server" style="cursor:pointer; height:20px" onclick="chk_salary()" >Search</div>
</div>
Posted
Comments
Shobhana.n 14-Feb-14 5:06am    
requirement is not clear
[no name] 14-Feb-14 5:26am    
check the 1st check box 6000-1 lakh then i wanted to display the between values

At first fetch all the salary records from data base. then use linq to 'dataset/datatable' to sort them according to check box selection .it will make application little bit faster also
 
Share this answer
 
its simple first bring all data and later can manipulate accordingly by storing in datatable
 
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