for example there external website check name of person registration number.now want write code start specific number , increment , each time fetch record , store details in excel.my main issue dont wanna manually sit , type numbers in external website.i start number , automatically code should increment number each time , fetch records.
okay, use static variable/session variable(preferably static one); , set default value variable; increment value whenever user passes registration phase..
eg:
static string regnum="rn1000"; /* make required operations , if valid proceed */ regnum="rn"+(convert.toint64(regnum.trimstart('r').trimstart('n'))+1).tostring();
this sort of condition out.. :)
Comments
Post a Comment