How can i clientside reference dynamicly created textboxes (with datalist). Name and ID are created serverside, of course i have no control over the id, but would be great if i had control over the name. I see 2 solutions, and wanna know if its possible and
how: - i set the names myself in a DataList_ItemCreated sort of thing or, - i get the uniqueid (or clientid) from the textbox in DataList_ItemCreated, and dynamicly add it to anouther asp control with add attribute, but the problem here is that i get no Unique
ID, it just returns the asp.net id, could it be that the control that i wanna add it too is placed after the textbox in the htmlcode?
Atually i found out what to do, i use solution 2, but i found out i couldn't get the unique id on ItemCreated but instead if i do it on ItemBound it worked... :D
pmertz
Member
30 Points
6 Posts
How do i reference asp:textboxes
Nov 24, 2003 11:25 AM|LINK
pmertz
Member
30 Points
6 Posts
Re: How do i reference asp:textboxes
Nov 24, 2003 11:54 AM|LINK
BlackWidow5
Member
30 Points
6 Posts
Re: How do i reference asp:textboxes
Nov 26, 2003 04:58 PM|LINK