DataClasses1DataContext dm = new DataClasses1DataContext(); var item = dm.Rates.Max(o => o.Id); item = (item) + 1; lblSrno.Containt=item.Tostring();
int? intIdt = db.Users.Max(u => (int?)u.UserId);
try { DataClasses1DataContext dm = new DataClasses1DataContext(); var item = dm.Rates.Max(o => o.Id); if(item==null)return; item ++; lblSrno.Containt=item.Tostring(); } catch{ }
DataClasses1DataContext dm = new DataClasses1DataContext(); var item = dm.Rates.Max(o => o.Id); item = (item==null ? 0:item) + 1; lblSrno.Containt=item.Tostring();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)