AsifCh Posted January 17, 2004 Posted January 17, 2004 I am papulating a data grid from the data base with in my Page Load method I use the If(!IsPostBack) to check the PostBack and decided to populate or not The Problem is when ever the user clicked any button the page is posted back and the Page Load is Called not One time but twice. First time when the page load method is called all things are hapened usually but when the Page load is called second time The (!IsPostBack) is evaluated to true where it should be evaluated to false. Can any body help me :confused: Quote Asif Raza Ashraf Senior Software Engineer Electronic Solutions Pakistan Islamabad
Moderators Robby Posted January 17, 2004 Moderators Posted January 17, 2004 Is one of your controls using Server.Transfer to reload the page in question? If not can you paste your code here. Quote Visit...Bassic Software
AsifCh Posted January 19, 2004 Author Posted January 19, 2004 Yes Several Pages of my Application are using the Response.Redirect("") and Server.Transfer("") I am not able to remove them so is there any other option to overcome this deficulty. Secondly I am facing this Problems in most of the Pages that Page is Posted Back Twice. Can You please tell me that is there any problem with Response.Redirect("") and Server.Transfer("") Thanks... Quote Asif Raza Ashraf Senior Software Engineer Electronic Solutions Pakistan Islamabad
Moderators Robby Posted January 19, 2004 Moderators Posted January 19, 2004 Why are you posting back with Response.Redirect("") or Server.Transfer(""), that's why the page loads twice. Quote Visit...Bassic Software
AsifCh Posted January 20, 2004 Author Posted January 20, 2004 Actually I have to call an other page from the current page which shows the results about the user's choice . On the First page the user select some different options and on the Next Page I have to show the results from the user's choice . I have no idea except to use the Response.Redirect() or Server.Transfer(). If You have any other idea to do the same thing then please guide me Thanks Quote Asif Raza Ashraf Senior Software Engineer Electronic Solutions Pakistan Islamabad
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.