Re: Master page postback.. !IsPostback doesnt work
- From: anthonykallay@xxxxxxxxxxxxxx
- Date: Mon, 09 Jul 2007 08:49:13 -0700
Hi all,
Thanks for your replies but i still think im not being clear.. on
default.aspx i have the following code
if (!Page.IsPostBack)
{
string page;
if (Request.QueryString["PageID"] != null)
page = Request.QueryString["PageID"].ToString();
}
Obviously this code runs the first time the page loads, then when
someone logs in they press the submit button in the login control on
the masterpage causing the page to "postback". However when this
"postback occurs the above code runs when i thought the if (!
Page.IsPostBack) would stop the code running as i have just posted the
page from the login ox.. Why does this code run??
Cheers
Anthony
.
- Follow-Ups:
- Re: Master page postback.. !IsPostback doesnt work
- From: Patrice
- Re: Master page postback.. !IsPostback doesnt work
- References:
- Master page postback.. !IsPostback doesnt work
- From: anthonykallay
- Re: Master page postback.. !IsPostback doesnt work
- From: Mark Rae [MVP]
- Re: Master page postback.. !IsPostback doesnt work
- From: anthonykallay
- Re: Master page postback.. !IsPostback doesnt work
- From: Patrice
- Master page postback.. !IsPostback doesnt work
- Prev by Date: Re: calling java class from web page
- Next by Date: Re: Creating db from SQL statements
- Previous by thread: Re: Master page postback.. !IsPostback doesnt work
- Next by thread: Re: Master page postback.. !IsPostback doesnt work
- Index(es):