D
darrel
I'm rather confused as to what is a postback and what is not.
I have a page with a asp:dropdownlist and asp:button
There's an event on the button click that response.redirects to the same
page with an updated querystring (based on the value of the dropdownlist
selected item).
On pageload, there's a subroutine that checks for the ifPostBack
I can only get code to run within the If IsPostBack ELSE portion. Nothing
ever runs in the ifPostBack, making me assume there there isn't an actual
postback happening.
To further add confusion, if I remove the ifPostBack statement, the code
that was within the ELSE is now by itself in the pageLoad and does not
execute. In otherwords, for the pageLoad content to work, I have to wrap it
in a If IsPostBack ELSE.
I'm not comprehending some .net logic here. ;o)
-Darrel
I have a page with a asp:dropdownlist and asp:button
There's an event on the button click that response.redirects to the same
page with an updated querystring (based on the value of the dropdownlist
selected item).
On pageload, there's a subroutine that checks for the ifPostBack
I can only get code to run within the If IsPostBack ELSE portion. Nothing
ever runs in the ifPostBack, making me assume there there isn't an actual
postback happening.
To further add confusion, if I remove the ifPostBack statement, the code
that was within the ELSE is now by itself in the pageLoad and does not
execute. In otherwords, for the pageLoad content to work, I have to wrap it
in a If IsPostBack ELSE.
I'm not comprehending some .net logic here. ;o)
-Darrel