Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can Anyone Answer me:


Below Rs.500/-
Rs.500/- to Rs.1000/-

when i click any one of this i will get all detail of that particular range.

ple giv me a coding for this.
Posted

Hi Narmatha,
Call the command object which specifies to your requirement.Then bind the dataset or data reader to the gridview.

Example:
C#
SqlCommand cmd=new SqlCommand("select * from emp where salary<500",cn);

SqlCommand cmd=new SqlCommand("select * from emp where salary>=500 and salary<=1000",cn);

I Hope it helps you,
If any more problems, send me a query.
 
Share this answer
 
v2
Comments
M.Narmatha 19-Nov-11 3:30am    
options selected from bulleted list
srinivas vadepally 19-Nov-11 3:53am    
Narmatha ,
Use radiobuttonlist or radio buttons instead of bulleted list, write the code in selectedindex_changed event.
thatraja 19-Nov-11 4:12am    
Better include your code in your question.
SQL
SELECT * FROM myTable WHERE price < 500


SQL
SELECT * FROM myTable where price BETWEEN 500 AND 1000
 
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