Hi,
I would like to know if it's possible to do something like the following:
<ctl:PermissionControl UserName="johndoe">
<table>
<tr>
<td>Hello John!!!</td>
</tr>
</table>
</ctl:PermissionControl>
I would like to check the UserName property on the server and if the
username is not johndoe then the inner content of that control won't be
rendered. The question is only about how to prevent the rendering, the rest
I can handle ;)
Thanks!
Jeremy Chapman - 16 May 2006 20:45 GMT
Can you set the Visible property of your PermissionControl to false?
> Hi,
>
[quoted text clipped - 13 lines]
>
> Thanks!
mr. App - 17 May 2006 09:38 GMT
will it cause the code to vanish from the client as well or just hide it on
the client side?
> Can you set the Visible property of your PermissionControl to false?
>
[quoted text clipped - 15 lines]
>>
>> Thanks!
intrader - 22 May 2006 01:33 GMT
> will it cause the code to vanish from the client as well or just hide it
> on the client side?
[quoted text clipped - 18 lines]
>>>
>>> Thanks!
vanish from the client - it is not rendered