【发布时间】:2011-01-04 13:27:59
【问题描述】:
喂,
在我的应用程序中,我将 html 代码存储在字符串中,例如:
string myHtml = "<html><body><input type ='text' value='hello'/></body></html>";
如何在另一个窗口中按下某个按钮预览这个 html?
<asp:Button ID="PreviewButton" runat="server" Text="Preview" OnClick="PreviewButton_Click"/>
我试过了:
protected void PreviewButton_Click(object sender, EventArgs e)
{
myHtml = "<html><body><input type ='text' value='hello'/></body></html>";
Response.Write(myHtml);
Response.End();
}
它的工作原理,它打开的预览但在同一个窗口中.. 有谁知道我如何在另一个窗口中打开它?
提前致谢。
杰夫
【问题讨论】: