Groups | Blog | Home
all groups > asp.net building controls > may 2006 >

asp.net building controls : Can I control existing HTML by using a custom control?


Jeremy Chapman
5/16/2006 12:45:30 PM
Can you set the Visible property of your PermissionControl to false?

[quoted text, click to view]

mr. App
5/16/2006 12:52:16 PM
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!

mr. App
5/17/2006 12:00:00 AM
will it cause the code to vanish from the client as well or just hide it on
the client side?

[quoted text, click to view]

intrader
5/22/2006 12:33:08 AM
[quoted text, click to view]
AddThis Social Bookmark Button