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_Cli ck(object sender, System.EventArg s e)
{
if ( Page.IsValid )
{
Session["ORG_NAME"] = ddl_BarOrgs.Sel ectedItem.Text;
Session["ORGANIZATI ON"] = ddl_BarOrgs.Sel ectedValue;
// Get Organization specific info
DataTable dt = ol.GetOrganizat ionSoftwareAndP rices
(ddl_BarOrgs.Se lectedValue);
foreach (DataRow dr in dt.Rows)
{
}
...
Response.Redire ct("LogonForm.a spx");
}
}
On the "LogonForm.aspx " page in the Page_Load() routine, I have this:
private void Page_Load(objec t sender, System.EventArg s e)
{
if ( !Page.IsPostBac k )
{
if (Session["ORGANIZATI ON"] == 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["ORGANIZATI ON"] 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["ORGANIZATI ON"] == 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.r illing.net> wrote in message
news:O$******** *****@tk2msftng p13.phx.gbl...
How specifically does it not work?
"ESmith" <el**********@h otmail.com> wrote in message
news:e8******** ******@tk2msftn gp13.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.redire cts.
Is there something about being run in an iframe that will mess up my
site - is this an known issue?
TIA