I am creating a web app in c#, and I have multiple id's.
This is how it looks:
string id = "17359,17355,17460,16834";
this is four different id's i stored in my string
now this is my sqlcommand
sqlcommand cmd=new sqlcommand("select * from trid where id!=@id",con);
sqlparameter[] param={
new sqlparameter("@id",id)
};
what i want is, i dont want data's with these id's 17359,17355,17460,16834
and i want to see the rest of the data
what i should do here??
id's are dynamic and can be less or more in numbers