Microsoft
Software
Hardware
Network
Question : C# ASP.NET Clear TextBox on UserControl
I have a UserControl (rcRushReason) that I have placed in my default.aspx page for my website. The UserControl (rcRushReason) has a textbox (txtReasonRush) in it that sometimes maintains text that I need to clear. Is there a way I can click a button on default.aspx to clear the text in rcRushReason.txtReasonRush
? I will be loading the user control (rcRushReason) with the same button click.
Thanks.
Answer : C# ASP.NET Clear TextBox on UserControl
should be
TextBox txt = rcRushReason.FindControl("
txtReasonR
ush");
txt.Text = "";
Random Solutions
Populate a combo box based on selection from previous combo box
MSCom1 control returns objectrequired - what am I doing wrong?
Out-of-Office rule doesn't forward emails sent to distribution list
Outlook 2007 is "Always on Top"
Formatting a 60gb hard drive fails in Disk Management
Microsoft Access was unable to initialize the Windows Registry
How to resolve this error
Message Box in access to display table cell value
Slow ODBC connection from PHP through IIS to Sql Sever 2005
Using System.IO.Directory.GetFil<wbr />es in VB.NET