locked
show html in a text box RRS feed

  • Question

  • User693597704 posted

    hello what I am doing is trying to view the html called for when a user views a page in a textbox..... probably going about it the wrong way anyways what I have is a database that some users will be able to insert html content to be displayed when others view the page ... so for testing purposes I have the following in a database

    <style>
    <html>
    <HEAD>
      <META HTTP-EQUIV="imagetoolbar" CONTENT="no">
      <style>
    <!--
    BODY{
    scrollbar-face-color:#b6bd49;
    scrollbar-arrow-color:#ffffff;
    scrollbar-track-color:#000000;
    scrollbar-shadow-color:#000000;
    scrollbar-highlight-color:#000000;
    scrollbar-3dlight-color:#000000;
    scrollbar-darkshadow-Color:#ffffff;
    }
    -->
    </style>
     
    <bgsound src="http://www.phillysdesigns2.com/music/">
    
    </head>
    
    <a href="funnyfrogpagepastel.htm">
    
    <BR>
    </a>
    <BR>
    <CENTER><TABLE BACKGROUND="http://i84.photobucket.com/albums/k14/philly49/funny%20frogs/frog1blur1.jpg" BORDER="1" WIDTH="20%" CELLPADDING="10" CELLSPACING="0">
    <TR>
    <TD WIDTH="100%">
    
    <CENTER><TABLE BACKGROUND="http://i84.photobucket.com/albums/k14/philly49/funny%20frogs/frog1blur.jpg" BORDER="1" WIDTH="20%" CELLPADDING="50" CELLSPACING="0">
    <TR>
    <TD WIDTH="100%">
    <CENTER><TABLE BACKGROUND="http://i84.photobucket.com/albums/k14/philly49/funny%20frogs/frog1blur1.jpg" BORDER="1" WIDTH="20%" CELLPADDING="10" CELLSPACING="0">
    <TR>
    <TD WIDTH="100%">
    
    <P><CENTER><TABLE BACKGROUND="http://i84.photobucket.com/albums/k14/philly49/funny%20frogs/frog1back.jpg" BORDER="1" WIDTH="100%" CELLPADDING="0" CELLSPACING="0">
    <TR><TD WIDTH="100%"> 
    <font face="arial bold" size="5" color="b6bd49"><center>
    <center><img src="http://i84.photobucket.com/albums/k14/philly49/funny%20frogs/funny1main.jpg" width="650">
    <br>
    <br>
    <font size="6" font face="Brock Script"><b><font color="b6bd49">Good Luck in My Tourney<br>
    <br>
    <center><a href ="http://www.phillysdesigns2.com/"><font color="#b6bd49" size="5" font face="monotype corsiva"><b>*~*Page Designs by Philly*~*</b></font></a></center>
    <br>
    </font>
    <font color="#b6bd49" size="2" font face="georgia">
    <center>Page layout copyright © 2008-2009 Phillys Designs<br />
    <font></center>
    <br>
    
    <script language="JavaScript1.2">
    
    /*
    Watermark Backgound Image Script- © Dynamic Drive (www.dynamicdrive.com)
    For full source code, 100's more DHTML scripts, and TOS,
    visit dynamicdrive.com
    */
    
    if (document.all||document.getElementById)
    document.body.style.background="url('http://i84.photobucket.com/albums/k14/philly49/funny%20frogs/frog1tile.jpg') white center fixed"
    
    
    </script>
    

    then I insert in textbox here

    Rules.Text = DetailsView1.Rows.Item(13).Cells(1).Text

    but what I see in the textbox when ran is this

    &lt;style&gt;
    &lt;html&gt;
    &lt;HEAD&gt;
      &lt;META HTTP-EQUIV=&quot;imagetoolbar&quot; CONTENT=&quot;no&quot;&gt;
      &lt;style&gt;
    &lt;!--
    BODY{
    scrollbar-face-color:#b6bd49;
    scrollbar-arrow-color:#ffffff;
    scrollbar-track-color:#000000;
    scrollbar-shadow-color:#000000;
    scrollbar-highlight-color:#000000;
    scrollbar-3dlight-color:#000000;
    scrollbar-darkshadow-Color:#ffffff;
    }
    --&gt;
    &lt;/style&gt;
     
    &lt;bgsound src=&quot;http://www.phillysdesigns2.com/music/&quot;&gt;
    
    &lt;/head&gt;
    
    &lt;a href=&quot;funnyfrogpagepastel.htm&quot;&gt;
    
    &lt;BR&gt;
    &lt;/a&gt;
    &lt;BR&gt;
    &lt;CENTER&gt;&lt;TABLE BACKGROUND=&quot;http://i84.photobucket.com/albums/k14/philly49/funny%20frogs/frog1blur1.jpg&quot; BORDER=&quot;1&quot; WIDTH=&quot;20%&quot; CELLPADDING=&quot;10&quot; CELLSPACING=&quot;0&quot;&gt;
    &lt;TR&gt;
    &lt;TD WIDTH=&quot;100%&quot;&gt;
    
    &lt;CENTER&gt;&lt;TABLE BACKGROUND=&quot;http://i84.photobucket.com/albums/k14/philly49/funny%20frogs/frog1blur.jpg&quot; BORDER=&quot;1&quot; WIDTH=&quot;20%&quot; CELLPADDING=&quot;50&quot; CELLSPACING=&quot;0&quot;&gt;
    &lt;TR&gt;
    &lt;TD WIDTH=&quot;100%&quot;&gt;
    &lt;CENTER&gt;&lt;TABLE BACKGROUND=&quot;http://i84.photobucket.com/albums/k14/philly49/funny%20frogs/frog1blur1.jpg&quot; BORDER=&quot;1&quot; WIDTH=&quot;20%&quot; CELLPADDING=&quot;10&quot; CELLSPACING=&quot;0&quot;&gt;
    &lt;TR&gt;
    &lt;TD WIDTH=&quot;100%&quot;&gt;
    
    &lt;P&gt;&lt;CENTER&gt;&lt;TABLE BACKGROUND=&quot;http://i84.photobucket.com/albums/k14/philly49/funny%20frogs/frog1back.jpg&quot; BORDER=&quot;1&quot; WIDTH=&quot;100%&quot; CELLPADDING=&quot;0&quot; CELLSPACING=&quot;0&quot;&gt;
    &lt;TR&gt;&lt;TD WIDTH=&quot;100%&quot;&gt; 
    &lt;font face=&quot;arial bold&quot; size=&quot;5&quot; color=&quot;b6bd49&quot;&gt;&lt;center&gt;
    &lt;center&gt;&lt;img src=&quot;http://i84.photobucket.com/albums/k14/philly49/funny%20frogs/funny1main.jpg&quot; width=&quot;650&quot;&gt;
    &lt;br&gt;
    &lt;br&gt;
    &lt;font size=&quot;6&quot; font face=&quot;Brock Script&quot;&gt;&lt;b&gt;&lt;font color=&quot;b6bd49&quot;&gt;Good Luck in My Tourney&lt;br&gt;
    &lt;br&gt;
    &lt;center&gt;&lt;a href =&quot;http://www.phillysdesigns2.com/&quot;&gt;&lt;font color=&quot;#b6bd49&quot; size=&quot;5&quot; font face=&quot;monotype corsiva&quot;&gt;&lt;b&gt;*~*Page Designs by Philly*~*&lt;/b&gt;&lt;/font&gt;&lt;/a&gt;&lt;/center&gt;
    &lt;br&gt;
    &lt;/font&gt;
    &lt;font color=&quot;#b6bd49&quot; size=&quot;2&quot; font face=&quot;georgia&quot;&gt;
    &lt;center&gt;Page layout copyright &#169; 2008-2009 Phillys Designs&lt;br /&gt;
    &lt;font&gt;&lt;/center&gt;
    &lt;br&gt;
    
    &lt;script language=&quot;JavaScript1.2&quot;&gt;
    
    /*
    Watermark Backgound Image Script- &#169; Dynamic Drive (www.dynamicdrive.com)
    For full source code, 100&#39;s more DHTML scripts, and TOS,
    visit dynamicdrive.com
    */
    
    if (document.all||document.getElementById)
    document.body.style.background=&quot;url(&#39;http://i84.photobucket.com/albums/k14/philly49/funny%20frogs/frog1tile.jpg&#39;) white center fixed&quot;
    
    
    &lt;/script&gt;
    

    when it should look like here :
    http://www.phillysdesigns2.com/funny/frog1.htm

    Thursday, March 6, 2014 10:37 PM

Answers