Click here to Skip to main content
12,254,932 members (53,572 online)
Click here to Skip to main content
Alternatives (2)
Add your own
alternative version

Tagged as

Stats

70.9K views
15 bookmarked
Posted

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.

Alternatives

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
kris444
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()); ...

License

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

Share

About the Author

CS1401
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.160426.1 | Last Updated 27 Sep 2011
Article Copyright 2011 by CS1401
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid