asp.net does not Redirect when in frameset

Posted by Snoop Dogg on Stack Overflow See other posts from Stack Overflow or by Snoop Dogg
Published on 2010-04-02T13:34:19Z Indexed on 2010/04/02 13:53 UTC
Read the original article Hit count: 402

Filed under:
|

I have developed an application on asp.net. I uploaded it to my host. lets say http://myhost/app. My manager wrapped this address into an empty frameset on http://anotherhost/somename and sets the src of frame to http://myhost/ap. And so nobody can login. When the button is hit, it posts back (browser loads stuff, progress bar fills up and ends) but nothing happens. Does not redirect.

(I have set IE to alwaysAllowCookies and it now does work, but other people still cannot)

I think there is something that I have no clue about framesets and ASP.NET

ps: I never use frames but could not convince my manager in doing so. He likes to develop in front page :)

Whatz happening?

Thx in advance

protected void btnLogin_Click(object sender, ImageClickEventArgs e) { Member member = Logic.DoLogin(txtUsername.Text.Trim(), txtPassword.Text.Trim()); if (null == member) { lblError.Text = "Invalid Login !"; return; }

CurrentMember = member; ///CurrentMember is an inherited property that accesses Session["member"] = member Response.Redirect("Default.aspx");

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about frameset