Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
How to erase Textboxes Controls With Same Basename???
Licenciando Cantinas
Apr 15 2017 9:11 PM
209
Reply
i want to go through controls with almos the same name, TextBox1, TextBox2, TextBox3 & TextBox4.
i want to make a 'while' to erase the txtboxes and as the base name is the same (TextBox) i need just a number at the end of the string and convert the string in a TextBox Control. something like this:
while (n < 4)
{
string _strTXT = "TextBox";
(_strTXT+n).Text=null;
n++;
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
MVC 5 login and sign page taking the value from dataabase
how to remove owin security and login from database in mvc 5