hide multi-update based on user-level

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
mpopkin
User
Posts: 9

hide multi-update based on user-level

Post by mpopkin »

Hi,

I would like to hide multi-update functionality for non-admin users. What would be the best way to code this? And would it need to be applied page by page or just once globally?

I'm using ASP.NET Maker 2017.

Thanks!

-mp


Webmaster
User
Posts: 9425

Post by Webmaster »

Use the Page_Load server event to hide the button. For example:

if (CurrentUserLevel() == <n>)
OtherOptions["action"]["multiupdate"].Visible = false;


mpopkin
User
Posts: 9

Post by mpopkin »

That produced an error in Page_Load.

I moved it to List_Page > Page_Render and it works well to hide the multi-edit button. Record check boxes still show, but that is fine.

Thanks!


Post Reply