Images\Articles
ClientsJSW.gifJSW.gifVisualStudio_vNext.png
Images\Cart
addtocart.gifgo.gifOnlineStore.gif
Images\Chess\Style1
bb.pngbk.pngbn.pngbp.pngbq.pngbr.pngclear.pngsprites.pngwb.pngwk.pngwn.pngwp.pngwq.pngwr.png
Images\Chess\Style2
bB.pngbK.pngbN.pngbP.pngbQ.pngbR.pngwB.pngwK.pngwN.pngwP.pngwQ.pngwR.png
Images\Chess\Style3
bb.gifbk.gifbn.gifbp.gifbq.gifbr.gifwb.gifwk.gifwn.gifwp.gifwq.gifwr.gif
Images\DeepTree
ftv2blank.gifftv2doc.gifftv2folderclosed.gifftv2folderopen.gifftv2lastnode.gifftv2mlastnode.gifftv2mnode.gifftv2node.gifftv2plastnode.gifftv2pnode.gifftv2transBlock.gifftv2vertline.gif
Images\Design
JSW.gif
Images\Exercise
airbike.gifcrunches.gifjack_knives.giftwistingcrunches.giftwistinglegraises.gif
Images\Grid
ajax-loader.gifajax-loader.pngDownArrow.gificon-calendar.gificon-delete.gificon-floppy.gificon-pencil-x.gificon-pencil.gificons-18-black.pngicons-18-white.pngicons-36-black.pngicons-36-white.pngPgBlock.gifPgFirst.gifPgLast.gifPgNext.gifPgPrev.gifSearch3.gifUpArrow.gif
Images\Money
bond1.gifbond2.gifbond3.gifbond4.gifbond5.gif
Images\NorthWind
NorthWindRelationalModel.gif
Images\Picture
waterfall.gif
Images\products
book.pngcalc.gifcart.gifcodesample.pngigspl_CollapseUpHover.gifigspl_ExpandDownHover.gifjht0329.gifjmt0920.gifjos0828.gifjrs1221.gifKO.pnglogo_aspmvc.pngMain.gifproject.gifscript.gifsheet.giftools.gifutility.gifVisualStudio_vNext.pngwhite.gifWindows.png
Images\Tabs
tabactive-left.giftabactive-middle.giftabactive-right.giftabcolorbg.giftabinactive-left.giftabinactive-middle.giftabinactive-right.gif
Images\Theme
download.giflogo.giflogo_mvc.pngreddiamond.giftotd.gifword.gif
Images
accent.pnga_scroll_down.gifa_scroll_up.gifbullet.pngbutton.gifclose.gifdot.gifhecanim.gifheroAccent.pngicon.gifmax.gifmin.gifmplogbut.giforderedList0.pngorderedList1.pngorderedList2.pngorderedList3.pngorderedList4.pngorderedList5.pngorderedList6.pngorderedList7.pngorderedList8.pngorderedList9.pngpopButton0.gifpopButton1.gifpopButton2.gifqball.gifr2lhoriz.gifRUP.gifsize.gifT.gifT1.gifT2.gifT3.gifT4.gifT5.gifT6.gifT7.gifwaterfall.gifxball.gifzball.gif

debugScroll
    <div id="fileList" runat="server"></div> 

    <script type="text/javascript">
            function debugScroll() {
                var obj = document.getElementById("fileList");
                alert(obj.innerHTML);
            }
    </script>

    protected   string directoryPath = "../Images/";
    public System.Web.UI.HtmlControls.HtmlGenericControl fileList;
    fileList.InnerHtml = "";
If you click the debugScroll prompt an alert box pops up showing the innerHTML of the fileList [Object] Control
The recursive DisplayDirectoryInformation() method function applies a filter file extention list as follows:
string[] extentions = { ".aspx", ".htm", ".html", ".jar", ".gif", ".png", ".xml", ".xslt", ".doc", ".xls", ".cshtml" };
See also ▶Directory List where a toggleDirectory javascript function is injected into fileList.InnerHtml in the code behind.
» MVC Home