Link to home
Start Free TrialLog in
Avatar of jamesdean666
jamesdean666

asked on

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.
Avatar of HainKurt
HainKurt
Flag of Canada image

maybe you can use findcontrol

dim txt as TextBox = rcRushReason.FindControl("txtReasonRush")
txt.Text = ""
Avatar of jamesdean666
jamesdean666

ASKER

Do you know what this would be in C#?
ASKER CERTIFIED SOLUTION
Avatar of HainKurt
HainKurt
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yahtzee.... thanks.