Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.
1st set Works but wrong variable... var dbTimeClockPlus = new TimeClockPlusDataContext(); var SearchInfo = (from c in dbTimeClockPlus.EmployeeLists where c.Suspend == false select c.RecordId).FirstOrDefault(); Random r = new Random(); int RcdId = SearchInfo == 0 ? 1 : SearchInfo; RcdId = r.Next(1, RcdId); txtRcdId.Text = Convert.ToString(RcdId); 2nd set - Correct variable but get several errors regarding conversion from double to int. var dbTimeClockPlus = new TimeClockPlusDataContext(); double EmpNo = (from c in dbTimeClockPlus.EmployeeLists where c.Suspend == false select c.EmployeeId).FirstOrDefault(); Random r = new Random(); double EmpId = EmpNo == 0 ? 1 : EmpNo; EmpId = r.Next(1, EmpId); txtEmpNo.Text = EmpId;
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
22 Experts available now in Live!