I have a string str = “txtName.Text” (txtName is name of textbox control)
How to display value of textbox without is value of string str (use C#)
Let me a solution.
Thanks a lot !
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.
Probably the easiest thing to do would be to extract the control id like this:
Then use the
Page.FindControlmethod to find the control and cast that as anITextControlso that you can get theTextproperty value: