I have a standard RadWizard. It is within an RadUpdatePanel. On page load I have a chunk of code.... Product is a global Object
If Not IsPostBack Then
Session("Product") = Product
'do something else
If Not isNothing(Session("Product")) Then
Product = Session("Product")
* = Breakpoint
I have placed a breakpoint within 'do something' and one within 'do something else'.
When I run the page the 'do something' code runs as expected. The 'do something else' is not run - as it's not a postback this is correct.
Whenever I click the Next button of the RadWizard the 'do something' code runs - hovering over IsPostback shows that it's value is FALSE... but it should surely be TRUE. If I continue from this breakpoint the 'do something else' code runs - hovering over IsPostback now shows it's value to be TRUE.
Why are both the Not IsPostback and the IsPostback code executed when the Next button is fired?