Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

call an object in a datalist. how??

Status
Not open for further replies.

cityrock

Programmer
Oct 9, 2002
15
IL
Hi all,
as a newcommer to asp.net, I am having trouble with a simple task.
I have a datalist, in which I have added a textbox.
What I want, is when a user clicks on a button on my datalist, the textbox will turn hidden. Ofcourse I would like all this to happen on the client side, without posting the page back.
Now, when I do :
onclick="this.style.visibility='hidden'" , it works great, and the button disapears, but how do I call this to work on another object in my tempalete. for example:
onclick="txtbox.style.visibility='hidden'" . Now I know I cant call for txtbox, since the datalist makes multiple of them, but I how do I call the specific object where the button was clicked??
anyhelp will be great.
Thanks
Eli
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top