Setting permissions through code
Hi. Am trying to make a user control through which I want to auto generate pages on a button click. But, I am getting an error that the user is not authorized to generate pages. Can you please help me with how I can set permissions through my code itself using c#.