Help Please!!
I have a c# web application that communicates with a web service, the front-end application takes a unique number(staff number), month, and year from the user and retrieve payslip information from the database, generate a pdf file and dumps the employee information on the pdf file.
The pdf file is password protected, when you open the pdf file the password you provide is compared to one of the fields in the database.
Now my problem is: if you access the application as an administrator you can download payslips for other employees, now I have to add a checkbox which gives the administrator the option to tell the downloaded pdf file whether to require password or not. If the checkbox is checked the pdf file must require password else password must not be required, am stark on this part and I don't know how to go about in adding this functionality. Help!