C Sharper
C Sharper

Reputation: 8626

Display web page according to html string

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.

enter image description here

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

Answers (1)

sangram parmar
sangram parmar

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

Related Questions