Post Back
-
I have a question about the Post Back, I dont think Ive really got it yet. I have a form with checkboxes and a submit button. I put in a break point in the page load method and my onClick method of the button. First time, page loads, grand. Checkbox values are populated from a DB grand. Then I change the values of the check boxes and click submit. The first breakpoint i encounter is the one in page load, which reloads the checkbox values from the DB and then these go into the onClick method. So my question is why is the order pageload, click submit, page load, onClick method? Ive tried putting the generation of the checkboxes in a if(!page,ispostback) but then in the submit method i call FindControl and it cant find them because I guess they were never created. What I want to know is why is this second pageload in there? I dont want it and its wrecking things. Thanks in advance,
-
I have a question about the Post Back, I dont think Ive really got it yet. I have a form with checkboxes and a submit button. I put in a break point in the page load method and my onClick method of the button. First time, page loads, grand. Checkbox values are populated from a DB grand. Then I change the values of the check boxes and click submit. The first breakpoint i encounter is the one in page load, which reloads the checkbox values from the DB and then these go into the onClick method. So my question is why is the order pageload, click submit, page load, onClick method? Ive tried putting the generation of the checkboxes in a if(!page,ispostback) but then in the submit method i call FindControl and it cant find them because I guess they were never created. What I want to know is why is this second pageload in there? I dont want it and its wrecking things. Thanks in advance,