Check out example codes for "iframe set html content c#". It will help you in understanding the concepts better.
Code Example 1
protected void btnChange_Click(object sender, EventArgs e)
{
myIframe.Attributes["srcdoc"] = "<h1>Contents Changed</h1>";
}
Learn ReactJs, React Native from akashmittal.com