Loyalty program including Generate Voucher Code in asp.net webform
currently I’m using the asp.net webform for this project. Below are the backend code for my member.aspx which is the loyalty program. It should get the customer’s current points balance using session (which works fine, i can get their points balance using session and from NoSQL database). But it cant generate the code which it does not shows the code on the screen, which I’m using label to show all the generated code(can be called: redeemed vouchers).And the points should be deducted based on the required points values, but it can’t also. I should save the new points balance to my database also right? and I should have ‘vouchers’ in my database under the customer table to save voucher codes also? or I can straightly save into session without database?