Website doesn't run in iframe?

E

ESmith

I've written a website that works fine when the user types in the URL into a
browser window. Now, one of our clients, whose website has a left panel
"iframe" menu, put our site in as a link and my site no longer works
corrected. My site uses Session variables and response.redirects.

Is there something about being run in an iframe that will mess up my site -
is this an known issue?

TIA
 
A

Andrew Robinson

TIA,

I had to deal with a web site that I maintained that used IFRAMEs. Symantec
has some "popup blocking / anti - aware" software that simply blocks any
links that resolve to an IFRAME on the local site. It caused all kinds of
havoc for us and we had to abandon the use of IFRAMEs. The worse thing about
it was the user never made the association between having changed the
settings on the software and our web site no longer working. It was always
our problem. Symantec gives the user a warning about how certain websites
will no longer function properly if the specific feature is enabled, but
most of the users we dealt with either didn't understand the implications of
the warning or never remembered having changed it.
 
E

ESmith

The first page has a couple of dropdownlists populated from a database:
Once the items are selected, the user clicks on a "continue" button - here's
a snippet:

Start Page:
private void btnContinue_Click(object sender, System.EventArgs e)
{
if ( Page.IsValid )
{
Session["ORG_NAME"] = ddl_BarOrgs.SelectedItem.Text;
Session["ORGANIZATION"] = ddl_BarOrgs.SelectedValue;

// Get Organization specific info
DataTable dt = ol.GetOrganizationSoftwareAndPrices
(ddl_BarOrgs.SelectedValue);
foreach (DataRow dr in dt.Rows)
{
}
...
Response.Redirect("LogonForm.aspx");
}
}



On the "LogonForm.aspx" page in the Page_Load() routine, I have this:

private void Page_Load(object sender, System.EventArgs e)
{
if ( !Page.IsPostBack )
{
if (Session["ORGANIZATION"] == null)
Server.Transfer ("OrgName.aspx");
else {}
}

If I run this from a browser with the user typing in our URL, things work as
expected.

On the client's site, where they embedded a link to us from within their
"framed" website, it seems that the Session["ORGANIZATION"] variable is lost
(eaten by the frame?) when the user attempts to transfer to the second page
(LogonForm.aspx) - they keep getting transferred back to the Start page ( if
(Session["ORGANIZATION"] == null) is always true, even though the
information was captured on the prior page as a prerequisite to navigating
to the second page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top