i add id in my query it worked
this is my new query
SqlCommand _cm2 = new SqlCommand(" SELECT id,address ,tell,name,(Select COUNT(behcode) from furniture_p where behcode= furniture_ch.behcode) as [count] from furniture_ch where F_code ='"+Request.QueryString["Code"]+"' order by [count] desc", _cn);
i have 2 question
1-i wrote above query in procedure in sql but i dont know how i can use it in my web page I can use procedure in my web site but here i have querystring i dont know how i can use procedure for this?
1-i want my query sort my data by date
furniture_p table has date column that save date the user has entered a new product
i want query that show the user that Recently enter their product
i want sort by date...
thanks