471,872 Members | 1,331 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,872 software developers and data experts.

trying to clear textboxes in a user control

abehm
35
how do I access a method that will clear textboxes in a user control, from a btnClick event in another user control on the same page?
May 25 '07 #1
2 1317
jhardman
3,406 Expert 2GB
With javascript. I'm not an expert, but it should be something like this:
Expand|Select|Wrap|Line Numbers
  1. onClick="this.form.myTextArea1.value=''"
  2.  
I'll move this to the javascript forum to see if someone there has a better explanation.

Jared
May 25 '07 #2
iam_clint
1,208 Expert 1GB
<input type="button" onclick="document.getElementById('input1').value=' ';" value="Clear field">

<input type="text" value="" id="input1">
May 25 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.