Advertisement

01.29.2008 at 09:08AM PST, ID: 23119972
[x]
Attachment Details

How to write HTML out to aspx page from C#

Asked by jayv21 in C# Programming Language, Programming for ASP.NET

Tags: C#, IE 7

I'm trying to write some HTML out to the screen stored in a variable, I don't want to write the literal value I want to generate the page based on the HTML.  PageData is the variable that contains the HTML.  How would I write this out to the ASPX page and generate the HTML?  Thanks for any help.




public partial class PrintPreview : CommonPage
{
   public PrintPreview()
   {
        string Debug = "";
        string PageData = "";
        string htmlCode = Request.QueryString.Get("HTML");
     
        try
        {

            string[] results = BAL.processReprints(htmlCode);
            PageData = results[0].ToString();
           
        }
        catch (Exception ex)
        {
            Logging.LogEntry(ex.Message);
           
        }
    }
}

Start Free Trial
 
Loading Advertisement...
 
[+][-]01.29.2008 at 09:17AM PST, ID: 20769899

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.01.2008 at 01:41AM PST, ID: 20795301

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C# Programming Language, Programming for ASP.NET
Tags: C#, IE 7
Sign Up Now!
Solution Provided By: hamidovt
Participating Experts: 2
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628