Click here to Skip to main content
12,758,462 members (30,030 online)
Click here to Skip to main content
Add your own
alternative version

Stats

1.9K views
Posted 1 Nov 2011

Parse out controls from your html page.

, 6 Nov 2011 CPOL
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)...

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())) { ...
24 Oct 2011
rj45
2 alternatives  
Parse out controls from your html page.

License

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

Share

About the Author

Kabwla.Phone
Software Developer (Senior)
Netherlands Netherlands
Doing that 'computer thing' ever since the C64.

Sometimes I feel that being a programmer is much like being a doctor: You just have to know everything and if you don't, something dies.

Either being an appliction or a patient.
Oddly enough, more people care about the death of their application, than the massacre op people...

Pro
Pro
| | Privacy | Terms of Use | Mobile
Web01 | 2.8.170217.1 | Last Updated 6 Nov 2011
Article Copyright 2011 by Kabwla.Phone
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid