Counter on a Field

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
reiscons
User
Posts: 11

Counter on a Field

Post by reiscons »

Hi , I have a table with a field called counter( number) , when i first create a row , the field count has a default value = 1

I need to increment this field by one every time i edit the record.

I use row_updating:

public bool Row_Updating(OrderedDictionary rsold, ref OrderedDictionary rsnew) {
rsold["counter"] = rsnew["counter"]+1
return true;
}

But it´s not working : rsold["counter"] = rsnew["counter"]+1


vincenthung
User
Posts: 88

Post by vincenthung »

Please try

rsnew["counter"] = Convert.ToInt32(rsold["counter"]) + 1;


Post Reply