Author: aspnet_user2009 | Posted on: 5/20/2009 9:38:34 AM | Views : 300

I need to output HTML from the ASPX page to file. After searching in forums I found some code and created a test ASPX page as shown below. The problem that I have is that the HTML file I generate does not contain any dynamic code created via Response.Write.  What am I doing wrong?
 
 ASPX Page
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestHTMLOutput.aspx.cs" Inherits="TestHTMLOutput" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
  &n ...

Go to the complete details ...