Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic Controls
Message
 
À
14/06/2002 15:11:50
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00668735
Message ID:
00668758
Vues:
20
You create the hyperlink control then you add it to the container that is to display it. The code is placed in the Page Load event. In the example below, I am adding the hyperlink control to the Page object:
        Dim MyHyperLink As New System.Web.UI.WebControls.HyperLink()
        MyHyperLink.Text = "My Test"
        MyHyperLink.NavigateUrl = "http://msn.com"
        Me.Controls.Add(MyHyperLink)
>Hello,
>
> I am creating a website that has dynamic content. I want to only display certain links based on the user's security level. I am using hyperlink web form controls for the links. What do I have to do to add a control to a webform dynamically?
>
>1,000 Thanks
>
>Jim
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform