
02-07-2012 01:11 PM
I need to display an iFrame in a tab on the Contact form. I also need to pass some parameters to the iFrame. Has anyone tried this before?
Solved! Go to Solution.
02-07-2012 01:41 PM - last edited on 02-07-2012 01:41 PM
Here is a simple way to do it (but there are probably a few more out there):
I add a Control Container to my form, and lay it out as desired. I called it something related (e.g. ccIFrame).
I then add a Load Action to the Form and use the Following Code:
//From Load Action -- This one is a C# snippet action
string id = con.Id.ToString();
LiteralControl lc = new LiteralControl();
string URL = "http://www.mysite.com/getMoreInfo.ashx?contactid=" + id;
string str = "<iframe id='myIFrame' name='picFrame' height='200' width='200' scrolling='no' frameborder='0'";
str += "seamless='seamless' src='" + URL + "'></iframe>";
lc.Text = str;
ccPicture.Controls.Clear();
ccPicture.Controls.Add(lc);
Also, I make sure to set the On Entity Changing and On Repaint Event properties of the Action to True
02-07-2012 06:42 PM