Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing textbox in contentplaceholder
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 3.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MySQL
Divers
Thread ID:
01425958
Message ID:
01425965
Vues:
31
>Dear All,
>
>my textbox is located in contentplaceholder, how to get its value?
>

If you mean it's a control located on your master page, you can use code like this to access it:
TextBox text = Master.FindControl("NameOfTextBox") as TextBox;

if (text != null)
{
   // Can access text 
}
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform