Click here to Skip to main content
15,881,248 members
Articles / Programming Languages / XML

Using InsomniaServer to Build a Web-interface for your Application

Rate me:
Please Sign up or sign in to vote.
4.80/5 (11 votes)
15 Jul 2011CPOL3 min read 83K   1.2K   41  
InsomniaServer enables you to add a fully-featured, customizable webserver to your projects. See how it works.
<html xmlns:MSHelp="http://msdn.microsoft.com/mshelp"><head><title>HtmlSource Methods </title><link rel="stylesheet" type="text/css" href="../styles/presentation.css" /><link rel="stylesheet" type="text/css" href="ms-help://Hx/HxRuntime/HxLink.css" /><script type="text/javascript" src="../scripts/EventUtilities.js"></script><script type="text/javascript" src="../scripts/SplitScreen.js"></script><script type="text/javascript" src="../scripts/Dropdown.js"></script><script type="text/javascript" src="../scripts/script_manifold.js"></script><meta name="guid" content="7419c951-a949-7585-d863-6fcb70feefe1" /><xml xmlns:msxsl="urn:schemas-microsoft-com:xslt"><MSHelp:TOCTitle Title="HtmlSource Methods "></MSHelp:TOCTitle><MSHelp:RLTitle Title="HtmlSource Methods  (InsomniaSoftware.Server.Sources)"></MSHelp:RLTitle><MSHelp:Attr Name="AssetID" Value="Methods.T:InsomniaSoftware.Server.Sources.HtmlSource" /><MSHelp:Keyword Index="A" Term="Methods.T:InsomniaSoftware.Server.Sources.HtmlSource" /><MSHelp:Keyword Index="A" Term="frlrfInsomniaSoftwareServerSourcesHtmlSourceMembersTopic" /><MSHelp:Keyword Index="K" Term="HtmlSource class, methods"></MSHelp:Keyword><MSHelp:Attr Name="DevLang" Value="CSharp" /><MSHelp:Attr Name="DevLang" Value="VB" /><MSHelp:Attr Name="DevLang" Value="C++" /><MSHelp:Attr Name="Locale" Value="en-us"></MSHelp:Attr><MSHelp:Attr Name="TopicType" Value="kbSyntax" /></xml></head><body><input type="hidden" id="userDataCache" class="userDataStyle" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" /><input type="hidden" id="hiddenScrollOffset" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" /><img id="collapseImage" style="display:none; height:0; width:0;" alt="Collapse image" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" src="../icons/collapse_all.gif"></img><img id="expandImage" style="display:none; height:0; width:0;" alt="Expand image" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" src="../icons/expand_all.gif"></img><img id="collapseAllImage" style="display:none; height:0; width:0;" alt="CollapseAll image" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" src="../icons/collall.gif"></img><img id="expandAllImage" style="display:none; height:0; width:0;" alt="ExpandAll image" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" src="../icons/expall.gif"></img><img id="dropDownImage" style="display:none; height:0; width:0;" alt="DropDown image" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" src="../icons/drpdown.gif"></img><img id="dropDownHoverImage" style="display:none; height:0; width:0;" alt="DropDownHover image" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" src="../icons/drpdown_orange.gif"></img><img id="copyImage" style="display:none; height:0; width:0;" alt="Copy image" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" src="../icons/copycode.gif"></img><img id="copyHoverImage" style="display:none; height:0; width:0;" alt="CopyHover image" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" src="../icons/copycodeHighlight.gif"></img><div id="header" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt"><table id="topTable"><tr id="headerTableRow1"><td align="left"><span id="runningHeaderText">InsomniaServer - Class Library</span></td></tr><tr id="headerTableRow2"><td align="left"><span id="nsrTitle">HtmlSource Methods </span></td></tr><tr id="headerTableRow3"><td /></tr></table><table id="bottomTable" cellspacing="0" cellpadding="0"><tr><td><span onclick="ExpandCollapseAll(toggleAllImage)" style="cursor:default;" onkeypress="ExpandCollapseAll_CheckKey(toggleAllImage, event)" tabindex="0"><img ID="toggleAllImage" class="toggleAll" alt="CollapseAll image" src="../icons/collall.gif"></img><label id="collapseAllLabel" for="toggleAllImage" style="display: none;">Collapse All</label><label id="expandAllLabel" for="toggleAllImage" style="display: none;">Expand All</label> </span><span id="membersOptionsFilterToolTip" style="cursor:default;" onmouseover="membersOptionsFilterImage.src=dropDownHoverImage.src;" onmouseout="membersOptionsFilterImage.src=dropDownImage.src;" tabindex="0"><img id="membersOptionsFilterImage" alt="DropDown image" src="../icons/drpdown.gif"></img><label id="showAllMembersLabel" for="membersOptionsFilterImage" style="display: none;">Members Options: Show All</label><label id="filteredMembersLabel" for="membersOptionsFilterImage" style="display: none;">Members Options: Filtered</label></span></td></tr></table><div id="membersOptionsSpan"><input id="inheritedCheckbox" type="checkbox" name="membersOptionsFilter" onClick="SetMembersOptions(this)" /><label class="membersOptionsFilter" for="inheritedCheckbox">Include Inherited Members</label><br /><input id="protectedCheckbox" type="checkbox" name="membersOptionsFilter" onClick="SetMembersOptions(this)" /><label class="membersOptionsFilter" for="protectedCheckbox">Include Protected Members</label><br /><input id="netcfCheckbox" type="checkbox" name="membersOptionsFilter" onClick="SetMembersOptions(this)" /><label class="membersOptionsFilter" for="netcfCheckbox">.NET Compact Framework Members Only</label><br /><input id="netXnaCheckbox" type="checkbox" name="membersOptionsFilter" onClick="SetMembersOptions(this)" /><label class="membersOptionsFilter" for="netXnaCheckbox">XNA Framework Members Only</label></div></div><div id="mainSection"><div id="mainBody"><div id="allHistory" class="saveHistory" onsave="saveAll()" onload="loadAll()" /><div id="header"> </div><p><div class="summary">
            A source which enables you to construct html structures. The final html source is build by this class.
            </div></p><p>The following tables list the members exposed by the <a href="50188b2b-c67b-3f22-02e9-51e1aff62ec9.htm">HtmlSource</a> type.</p><h1 class="heading"><span onclick="ExpandCollapse(PublicmethodToggle)" style="cursor:default;" onkeypress="ExpandCollapse_CheckKey(PublicmethodToggle, event)" tabindex="0"><img id="PublicmethodToggle" onload="OnLoadImage(event)" class="toggle" name="toggleSwitch" src="../icons/collapse_all.gif"></img>Public Methods</span></h1><div id="PublicmethodSection" class="section" name="collapseableSection" style=""><table id="typeList" class="members"><tr><th class="iconColumn">
           
        </th><th class="nameColumn">Name</th><th class="descriptionColumn">Description</th></tr><tr name="inheritedMember" notSupportedOnXna="true" notSupportedOn="netcf"><td><img src="../icons/pubmethod.gif"></img></td><td><a href="95d1bb32-30d8-4225-765b-a7e95ebc954c.htm">Dispose</a></td><td><div class="summary">
            Disposes the source
            </div> (Inherited from <a href="0a29919b-8f48-2e77-7d9d-07d215e211fd.htm">Source</a>.)<br /></td></tr><tr notSupportedOnXna="true" notSupportedOn="netcf"><td><img src="../icons/pubmethod.gif"></img></td><td><a href="c35f3fb3-30c4-d006-3051-c82b44e05b03.htm">GetContentType</a></td><td><div class="summary">
            Gets the content type of this source's content
            </div> (Overrides .<a href="e242d898-c547-a481-ef97-b002882f98e4.htm">GetContentType()</a>.)<br /></td></tr><tr notSupportedOnXna="true" notSupportedOn="netcf"><td><img src="../icons/pubmethod.gif"></img></td><td><a href="e6648cd1-5074-63d0-f862-54372e4d439f.htm">GetInformation</a></td><td><div class="summary">
            Gets the SourceInfo
            </div> (Overrides .<a href="b88285c6-eb10-733c-8d6f-4bb1cccca8d3.htm">GetInformation()</a>.)<br /></td></tr><tr notSupportedOnXna="true" notSupportedOn="netcf"><td><img src="../icons/pubmethod.gif"></img></td><td><a href="fa42adf2-502e-6ce9-369b-1a240e42be8f.htm">GetLength</a></td><td><div class="summary">
            Gets the length of the source's content
            </div> (Overrides .<a href="736a47d8-5453-eea0-b85b-3a4d4f4cf009.htm">GetLength()</a>.)<br /></td></tr><tr notSupportedOnXna="true" notSupportedOn="netcf"><td><img src="../icons/pubmethod.gif"></img></td><td><a href="37bffc0a-47c2-cd7e-aa37-cc158561a1f3.htm">MoveCurNodeLevelUp</a></td><td><div class="summary">
            Sets the curNode handle to its parent node
            </div><br /></td></tr><tr notSupportedOnXna="true" notSupportedOn="netcf"><td><img src="../icons/pubmethod.gif"></img></td><td><a href="e4564307-694c-ba77-169b-6af0a216c07f.htm">Read</a></td><td><div class="summary">
            Reads a specified number of bytes into the given buffer
            </div> (Overrides .<a href="f3b42841-de1c-d9db-7667-916b9863bebc.htm">Read(Byte<span class="cs">[]</span><span class="vb">()</span>, Int32, Int32)</a>.)<br /></td></tr><tr name="inheritedMember" notSupportedOnXna="true" notSupportedOn="netcf"><td><img src="../icons/pubmethod.gif"></img></td><td><a href="038f464d-6257-1010-677e-fca3c9d7f14a.htm">ReadByte</a></td><td><div class="summary">
            Reads the next byte without advancing
            </div> (Inherited from <a href="0a29919b-8f48-2e77-7d9d-07d215e211fd.htm">Source</a>.)<br /></td></tr><tr notSupportedOnXna="true" notSupportedOn="netcf"><td><img src="../icons/pubmethod.gif"></img></td><td><a href="2abdec40-a5cf-7a9d-c65e-3ceed2a5e2f7.htm">Seek</a></td><td><div class="summary">
            Moves current the position withing the binary data
            </div> (Overrides .<a href="e0af3ba9-0b9a-2234-1dd2-5462501108c8.htm">Seek(Int32, SeekOrigin)</a>.)<br /></td></tr></table></div><div id="footer"><div class="footerLine"><img alt="Footer image" width="100%" height="3px" src="../icons/footer.gif"></img></div><div id="footer"><p />Send comments on this topic to
        <a id="HT_MailLink" href="mailto:webmaster%40manuel-then.de?Subject=InsomniaServer - Class Library">webmaster@manuel-then.de</a>
        <script type="text/javascript">
        var HT_mailLink = document.getElementById("HT_MailLink");
        var HT_mailLinkText = HT_mailLink.innerHTML;
        HT_mailLink.href += ": " + document.title;
        HT_mailLink.innerHTML = HT_mailLinkText;
        </script> <p /><a href="mailto:webmaster@manuel-then.de">(c)2007 by InsomniaSoftware | Manuel Then</a></div></div></div></div></body></html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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


Written By
Student
Germany Germany
I was born in 1987. Unfortunately too late to experience the real rise of the PC. But fortunately late enough to enjoy things like MS's .net during my school time Wink | ;)

From the time when some relative taught me a little BASIC under MS DOS, I loved to tell computers what to do - even though my real start in programming was around the age of 16.

At the moment, I am studying Software Engineering at University of Augsburg, always hoping to find time to design and program.
Besides, I like meeting friends, spent time with my girlfriend and enjoy life Smile | :)

Comments and Discussions