if I have a datalist with textbox and a button inside and i want to access the value of the textbox and pass it to the listener of the button, anyone knows how to do that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I know how.
Let’s say you have a
DataListname myDataList, and aTextBoxin it named by myTextBox.This loops through all of the items in your
DataListand places the value of yourTextBoxinto a local string variable named “text”. From there, you can do whatever else needs to be done.