Hi all
In my application i am using responce.redirect method to redirect to another page,
it is working fine means page is redirecting but page load not firing for first time.
if we click any button then only PageLoad event raising.
why this is happening?
Loading
chaitanyaPosted Jan 23, 2012, 6:50 AM
its my mistake,
i wrote OnLoad method in this page and in that page i write if (Page.IsPostBack == true).
I removed it and it is working fine now
Mamta MPosted Jan 23, 2012, 6:13 AM
eg:
private void Page_Load(object sender, System.EventArgs e)
{
...
if (!Page.IsPostBack)
{
...
}
}
This link may be helpful to understand in detail:
http://msdn.microsoft.com/en-us/library/ie/ms178472.aspx
Krishna GaradPosted Jan 23, 2012, 5:59 AM