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!

Unable to get the text in repeater textbox

Status
Not open for further replies.

arneweise77

Programmer
Apr 25, 2002
46
SE
Hi!

I have a slight problem with retrieving the text in my textbox. I´m using at repeater with the id: thedata. In my repeater and Itemtemplate I have a textbox with the id:version_txt. I now need to get the text from that textbox that the user have entered. But I get an error that says " Name version_txt is not declared ". Though I know I´ve declared it.

It has to be something with the repeater and the Itemtemplate that I´ve missed. Please help me with this someone.

Thanks in advance, Arne
 
What is your code? If I see the code I may be able to help...J
 
All the ItemTemplate controls are created by the fly. There is only one way to access those templates, and it's through the ItemCreated event handler. Look at this FAQ for further detail: faq855-2019

The example is for a datagrid, but it works the same for a reapeater.

hth Daren J. Lahey
Just another computer guy...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top