This is a migrated thread and some comments may be shown as answers.

RadWizard Next button when clicked IsPostBack = False

6 Answers 212 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 22 Dec 2014, 03:16 PM
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
    'do something
*   Session("Product") = Product
Else
    'do something else
*   If Not isNothing(Session("Product")) Then
        Product = Session("Product")
    End If
End

* = 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?

6 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 23 Dec 2014, 06:44 AM
Hello Jon,

The scenario seems quite unusual but I could not observe it at my side- would you please share the exact mark up of RadWizard that you use so we could inspect it and be more helpful. 

Regards,
Plamen
Telerik
0
Jon
Top achievements
Rank 1
answered on 23 Dec 2014, 02:36 PM
Plamen, I have submitted a support ticket with an attached project. Support Ticket No:891829. Thanks
0
Plamen
Telerik team
answered on 25 Dec 2014, 05:51 AM
Hello,

I could not replicate the issue at my side and it came out as an issue connected with the version of the Telerik dlls used in the project.

Regards,
Plamen
Telerik
0
Dimi
Top achievements
Rank 1
answered on 16 Jan 2015, 09:55 PM
Observed same behavior with version 2014.3.1002.45.
Official release version 2014.3.1209.45 (Web.UI.Dll) solves the problem.
0
ALAN
Top achievements
Rank 1
answered on 13 Feb 2015, 09:36 PM
I have the same problem here. When you click Next can not validate the fields with RequiredFieldValidator. I tried to upgrade to the latest version and not solved my problem.
0
Plamen
Telerik team
answered on 16 Feb 2015, 07:44 AM
Hello,

I have tested the described scenario and it worked correctly both at my side and on our online demos.

If you still observe the issue please share the exact code that you are using so we could inspect it and be more helpful with a possible solution.

Regards,
Plamen
Telerik
Tags
Wizard
Asked by
Jon
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Jon
Top achievements
Rank 1
Dimi
Top achievements
Rank 1
ALAN
Top achievements
Rank 1
Share this question
or