| | |
HTML code as a variable
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
Sure, where would you like the contents of the variable (say myHTML) to come from? It could be read from a file, it could be passed in from the old web page.
Regardless of the source, you can write it out by:
Hoppy
Regardless of the source, you can write it out by:
ASP Syntax (Toggle Plain Text)
<% response.write(myHTML) %>
Hoppy
•
•
Join Date: Sep 2007
Posts: 1,080
Reputation:
Solved Threads: 68
You can store it in a session variable, but if it is really large and you have a lot of traffic on a normal basis, stay away from this way. If this is the case, write it to a file, and when it is read again, delete the file unless it is needed yet again. Otherwise, store the information like below:
ASP Syntax (Toggle Plain Text)
Session("html") = "all your html oogily boogily" 'to pull it, just put it where you need it on your page with <%= Session("html") %>
Last edited by SheSaidImaPregy; Oct 27th, 2007 at 11:19 pm.
![]() |
Similar Threads
- hide html code on my website (HTML and CSS)
- Returning HTML code through SQL query? (PHP)
- Encrypting HTML Code and SEO Pickup... (HTML and CSS)
- Urgent...Having problem with the following HTML code in IE7 (HTML and CSS)
- schedule html code (HTML and CSS)
- my html code isnt working please help (HTML and CSS)
- PHP code not blending with HTML (PHP)
- updating 2 HTML tables on one PHP page (PHP)
Other Threads in the ASP Forum
- Previous Thread: Website problem
- Next Thread: Is it possible to call text by ID
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection connection database databaseconnection dreamweaver excel fso iis msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption single specfic sqlserver sqlserverconnection windows7






