Last post Aug 02, 2017 03:42 AM by jplane
Aug 01, 2017 04:43 AM|jplane|LINK
Is it possible to take this value and assign it to visible in a text field or gridview?
Aug 01, 2017 04:58 AM|jplane|LINK
Actually, this seems to work:
Public Function Valid_User(ByVal value As String) As Boolean
value = Context.User.Identity.GetUserName()
If value Like "datauser1" Or value Like "*Inspect" Or value Like "*Inspection*" Then
Inside my gridview:
Visible='<%# Valid_User("UserName") %>'
Aug 02, 2017 03:06 AM|Eric Du|LINK
According to your description and code, if your issue have solved?
Also I think you don't need pass parameter when call this function. Because you have get value in function, doesn't use that parameter.
Aug 02, 2017 03:42 AM|jplane|LINK
Yeah, I see the value is in the function, but when I call the function valid_user() in a databinding, it wants a parameter.