Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / May 2006

Tip: Looking for answers? Try searching our database.

Can I control existing HTML by using a custom control?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mr. App - 16 May 2006 10:52 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.