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.
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:O$*************@tk2msftngp13.phx.gbl...
How specifically does it not work?
"ESmith" <el**********@hotmail.com> wrote in message
news:e8**************@tk2msftngp13.phx.gbl... 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