<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Client Side Web Development</title><link>http://forums.asp.net/130.aspx</link><description>Client-side programming discussions, including CSS, DHTML, JScript/Javascript, etc. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=18&amp;c=16" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Loading an HTML page in order to store it in member variable</title><link>http://forums.asp.net/thread/2679199.aspx</link><pubDate>Mon, 13 Oct 2008 12:50:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2679199</guid><dc:creator>NC01</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2679199.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2679199</wfw:commentRss><description>&lt;p&gt;Good luck with that. Seems like a lot of work for nothing. Also remember that no server-side code will be executed when doing that.&lt;/p&gt;
&lt;p&gt;NC...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Loading an HTML page in order to store it in member variable</title><link>http://forums.asp.net/thread/2677704.aspx</link><pubDate>Sun, 12 Oct 2008 13:31:21 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2677704</guid><dc:creator>EMoscosoCam</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2677704.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2677704</wfw:commentRss><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;What I intend is to store the&amp;nbsp;&amp;nbsp;HTML content of a child page in a javascript&amp;nbsp;variable, so that&amp;nbsp;I can clone it. That is, I would use the window.Open() method with a valid URL to download the original child page first; then somehow I would store this page&amp;#39;s HTML in a string variable client-side. Next time I want a child page, I would use the window.Open() method without an URL and then use the document.write() method to create a clone of the first page. In other words, I want to use the original child page as a template.&lt;/p&gt;
&lt;p&gt;This is because the main page (the one that calls the child pages)&amp;nbsp;has a grid, and I want that when the user&amp;nbsp;clicks a row, a child page is displayed showing that row&amp;#39;s same data, but in a different layout. As you can read, since I already have the row&amp;#39;s data client-side, I do not need to return to the server for data that I already have in the client. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Loading an HTML page in order to store it in member variable</title><link>http://forums.asp.net/thread/2677683.aspx</link><pubDate>Sun, 12 Oct 2008 13:11:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2677683</guid><dc:creator>NC01</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2677683.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2677683</wfw:commentRss><description>&lt;p&gt;As Eric said you can&amp;#39;t use document.write. Also attempting to store/restore a page&amp;#39;s content (you could probably use Session variables, though I&amp;#39;ve never attempted that) would be very hard and memory expensive to the server. It is far easier to just add an asp:Label control to your markup and change that.&lt;/p&gt;
&lt;p&gt;&amp;lt;form id=&amp;quot;Form1&amp;quot; method=&amp;quot;post&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;asp:Label id=&amp;quot;dynamicContentLabel&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Client-side:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;function addDynamicContent()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;var elementRef = document.getElementById(&amp;#39;&amp;lt;%= dynamicContentLabel.ClientID %&amp;gt;&amp;#39;);&lt;br /&gt;&amp;nbsp;var yourDynamicContent = &amp;#39;Hello world&amp;lt;br&amp;gt;&amp;#39;;&lt;br /&gt;&amp;nbsp;elementRef.innerHTML = yourDynamicContent;&lt;br /&gt;}&lt;br /&gt;// --&amp;gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Server-side:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;private void addDynamicContent()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;string yourDynamicContent = &amp;quot;Hello world&amp;lt;br&amp;gt;&amp;quot;;&lt;br /&gt;&amp;nbsp;dynamicContentLabel.Text = yourDynamicContent;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;NC...&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Loading an HTML page in order to store it in member variable</title><link>http://forums.asp.net/thread/2677289.aspx</link><pubDate>Sun, 12 Oct 2008 02:07:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2677289</guid><dc:creator>A1ien51</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2677289.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2677289</wfw:commentRss><description>&lt;p&gt;You can not use document.write after the page loads.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If you want to only change a portion of the page, you either need to use DOM methods or innerHTML&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Eric&lt;/p&gt;</description></item><item><title>Loading an HTML page in order to store it in member variable</title><link>http://forums.asp.net/thread/2676911.aspx</link><pubDate>Sat, 11 Oct 2008 13:52:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2676911</guid><dc:creator>EMoscosoCam</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2676911.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2676911</wfw:commentRss><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I want to show a popwindow when the user double-clicks rows in a grid. This new window is very complex, so&amp;nbsp;I intend to download it the first time but use the document.write() method for the following cases. &lt;/p&gt;
&lt;p&gt;Is it possible to store the HTML code of a page in a variable so I can reuse it?&lt;/p&gt;
&lt;p&gt;Thanks a lot.&lt;/p&gt;</description></item></channel></rss>