Reputation: 8626
I have HTML script string stored in database. I am fetching this string in one variable.
I want to display page out of this html string below gethtml
button in below .aspx page.
I searched how to display sub html page inside main aspx page.
I came to know with webbrowser
control, but not finding it anywhere in tool box.
Is there any other control or way to show html page out of html script in above main aspx page?
Please help me.
Upvotes: 0
Views: 1941
Reputation: 8726
<div id="htmlpage" runat="server"></div>
in code behind
protected void Page_Load(object sender, EventArgs e)
{
string ss="<h1>Hello world</h1>";//your html string
htmlpage.InnerHtml = ss;
}
Upvotes: 1