Hiding labels and textboxs in formview templates according to role
I have a formview with templates. I want to hide certain labels or textboxes
according to the user's role membership. I can do this in a sub routine as
long as it's not inside a template, is it possible to do this inside a
Some code sample that does not work:
Protected Sub passPhrase_Init(ByVal sender As Object, ByVal e As
If (Roles.IsUserInRole("networkServices")) Then
FormView1.UniqueID.passphrase.visible = True
FormView1.ItemTemplate.itemtemplate.passphrase.vis ible = False
Thank you for your time.
|All times are GMT. The time now is 11:53 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.