Click here to Skip to main content
Click here to Skip to main content

Tagged as

Parse out controls from your html page.

, 27 Oct 2011 CPOL
You can simplify this by doing the following:/// /// Render/// /// protected override void Render(HtmlTextWriter writer){ if (Session[ExcelExport] != null && bool.Parse(Session[ExcelExport].ToString())) { ...

Alternatives

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

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)...
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

rj45
Software Developer (Senior)
Canada Canada
No Biography provided

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