Controlling the SRC of an IFRAME from code behind.

Category : ASP.Net, C#, VB.Net

Make sure to add the ” runat=’server’ ” in the markup.

 myIFrame.Attributes["src"] = "http://www.google.com";