Last post Mar 15, 2008 09:26 PM by phamster
Mar 13, 2008 01:49 PM|phamster|LINK
how would I change/add the code to make the checkbox item always check?
Here's the code I have right now:
Some how I need it to past true all the time. I'm doing it this way because if you are a admin you can make the album public but if you are not an admin you are only allow to create private albums.
Mar 13, 2008 08:15 PM|MaineOne|LINK
You could try to change the insert statement to, I believe as long as the checkbox is disabled it will use the DefaultValue.
Then you could add a funtion that enables or disables the checkbox if not admin
Function IsAdmin() As Boolean
If User.IsInRole("Administrator") Then
Then change the checkbox and add textbox. You could do another function to not show the label to admin as they would not need to see the text twice.
Mar 15, 2008 09:26 PM|phamster|LINK
I tried what you told me to do and it still doesn't check the box. It still set the album as public. Any other suggestions? Thanks for all your help so far.