<iframe id="Iframe1"> </iframe>
HtmlLink link1 = (HtmlLink)Page.FindControl("Iframe1"); link1.Attributes.Add("src", "http://www.xyz.com");
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
HtmlControl frame1 = (HtmlControl)this.FindControl("Iframe1"); frame1.Attributes["src"] = "http://www.xyz.com";
HtmlControl x = (HtmlControl)this.frame1; x.Attributes.Add("src", "http://www.xyz.com"])
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)