Click here to Skip to main content
12,820,053 members (23,456 online)
Click here to Skip to main content
Alternatives (2)
Add your own
alternative version

Tagged as


15 bookmarked
Posted 15 Sep 2011

How to clear a Multiple TextBox values in a single click in C# .NET

, 26 Sep 2011 CPOL
Using this method, we can clear the text stored in a textbox easily.


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

22 Sep 2011
Mohammad A Rahman
A generic text clear method for those ASP.NET controls which implement the ITextControl interface:private void Clear(ControlCollection controlCollection) where T : ITextControl{ if (controlCollection == null) return; ...
2 Oct 2011
We can better have an extension like: public static class ControlExtension { public static IList FindControlByName(this Control control) where T : Control { List controlsFound = new List(); controlsFound.AddRange(control.Controls.OfType()); ...


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer (Junior) CS1401
India India

Any fool can write code that a computer can understand. Good programmers write code that humans can understand.

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.170308.1 | Last Updated 27 Sep 2011
Article Copyright 2011 by CS1401
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid