Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing textbox in contentplaceholder
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 3.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MySQL
Miscellaneous
Thread ID:
01425958
Message ID:
01425965
Views:
32
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform