Click here to Skip to main content
12,246,601 members (45,702 online)
Click here to Skip to main content
Alternatives (2)
Add your own
alternative version

Stats

23.6K views
4 bookmarked
Posted

Parse out controls from your html page.

, 24 Oct 2011 CPOL
Parse out controls from your html page.

Alternatives

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

27 Oct 2011
rj45
You can simplify this by doing the following:/// /// Render/// /// protected override void Render(HtmlTextWriter writer){ if (Session[ExcelExport] != null && bool.Parse(Session[ExcelExport].ToString())) { ...
6 Nov 2011
Kabwla.Phone
Tip - Never use type equality because that does not support derived classes:if (item.GetType() == typeof(Image)) //this is bad, mkay.Instead use the following which does support derived classes:if (item is Image)The Microsoft prefered pattern (when you actually need the cast object)...

License

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

Share

About the Author

rj45
Software Developer (Senior)
Canada Canada
No Biography provided

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.160426.1 | Last Updated 24 Oct 2011
Article Copyright 2011 by rj45
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid