1
Answer

how to assign a default value to an ID using c#

i have two methods first one is getlisting(string url,int ID) i am having ID here from data table from database which has status zero and ID is greater than 1, now i want to pass this parameter to another class's method named updatevalue(int ID), which i have assigned by making object of this class. now i want to make this ID's value equal to zero, so my datatable won't select records of ID having zero value, so can anyone give me the loop of any condition with which i can assign zero value always to that ID, and one more thing there will be a different value always in getlisting method, all i want to do is to make that id assign a value zero in update method via code, i don't want to hard code it, so please tell me any condition if else or which ever will work
Answers (1)