SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Jul 27, 2010, 02:15 #1
- Join Date
- Sep 2005
- Location
- Puerto de Mazarron, Murcia, Spain
- Posts
- 426
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Why do I need to response.write the original string for this to work?
I am decoding encoded HTML...I'm not sure why this won't work without first doing a response.write for the original string, which doesn't appear.
If anyone can shed any light on this it would be appreciated.
Code ASP:<% Dim page_html page_html = " <table cellpadding=\"0\" cellspacing=\"0\" width=\"420\" bgcolor=\"#ffffff\" style=\"border:#46c3d3 1px solid;\"> <tr> <td style=\"background-color:#46c3d3; \"> <p style=\"padding-top:10px; padding-right:10px; padding-left:10px; font-weight:bold; font-family:arial; color:#fff; font-size:16px;\">Backup and recovery pains are threatening your cool. To cure them, you need an efficient, cost-effective, transformational solution that captures less, ingests less, and stores less data. And frees up \"lights-on\" dollars for IT projects of higher strategic value. Recover your cool. Discover Asigra.</p> <p style=\"text-align: right;padding-right:10px; font-weight:bold; font-family:arial;\"> Go forward with backup</p> </td> </tr> <tr> <td> <p style=\"padding-right:10px; padding-left:10px; font-weight:bold; font-family:arial; font-size:16px;\">Doing more with less – a lot less.</p> <p style=\"padding-right:10px; padding-left:10px; font-family:arial;\">In today\'s Cloud Computing era, IT organizations still clinging to traditional backup solutions are wasting brainpower and precious resources on what should be a routine task. By making Asigra their mantra, and transforming their incumbent backup solutions to efficient backup clouds, IT Leaders can evolve their environment without being constrained by recurring backup challenges.</p> <p style=\"padding-right:10px; padding-left:10px; font-weight:bold; font-family:arial; font-size:16px;\">About Asigra</p> <p style=\"padding-right:10px; padding-left:10px; font-family:arial;\">For more than 20 years Asigra has stayed ahead of the market with a secure, agentless, scalable and automated backup and recovery solution that aligns the value of data with its storage costs. IT Leaders evolve their environment, without being constrained by their recurring backup challenges, with innovative solutions from Asigra that currently protect over <br> <img src=\"i/asigra_overview.gif\" alt=\"asigra overview diagram\"> </p> </td> </tr> </table> <br> <table width=\"420\" bgcolor=\"#142530\"> <tr> <td> <table cellpadding=\"0\" cellspacing=\"0\" width=\"410\"> <tr> <td style=\"background-color:#FFF;\"> <p style=\"padding-right:10px; padding-left:10px; font-weight:bold; font-size:16px; font-family:arial;\">Asigra Product Advisor</p> </td> <td style=\"background-color:#FFF;\"> <p style=\"text-align:right; padding-right:10px; padding-left:10px; font-weight:bold; font-size:16px; font-family:arial; color:#46c3d3;\"> <a style=\"color:#46c3d3;\" href=\"[url]http://asigra.com/productadvisor/\"[/url] target=\"_blank\">Click here</a> </p> </td> <td> <a href=\"[url]http://asigra.com/productadvisor/\"[/url] target=\"_blank\"><img border=\"0\" src=\"i/arrow.jpg\"></a> </td> </tr> </table> <br> <td> </tr> </table> " Function HTMLDecode(page_html) page_html = Replace(page_html, "<","<" ) page_html = Replace(page_html, ">",">" ) page_html = Replace(page_html, "\'","'") page_html = Replace(page_html, "\"","""") page_html = Replace(page_html, ""","""") End Function page_html_decoded = HTMLdecode(page_html) response.write page_html response.write page_html_decoded %>
-
Jul 27, 2010, 07:43 #2
- Join Date
- Sep 2005
- Location
- Puerto de Mazarron, Murcia, Spain
- Posts
- 426
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Answered elsewhere.
I need the function to return a value.
-
Jul 27, 2010, 17:38 #3
- Join Date
- Jul 2005
- Location
- West Springfield, Massachusetts
- Posts
- 17,290
- Mentioned
- 198 Post(s)
- Tagged
- 3 Thread(s)
Also discussed http://www.sitepoint.com/forums/showthread.php?t=691753
Please do not start more than one thread dealing with the same topic, it can make things very confusing.
Duplicate Thread ClosedBig Change Coming Soon - if you want your PMs save them now!
What you need to do to prepare for our migration to Discourse
A New SitePoint Forum Experience: Our Move to Discourse
Bookmarks