|
Rank: Member Groups: Member
Joined: 6/29/2007 Posts: 12
|
Hello again,
When I'm trying to remove a session variable within my CallbackPanel I get an error when trying to click a button in the page.
The error is "The callback on 'mycontrolName' has failed because the server did not recognize this callback and processed it as an normal request..."
Everything works fine if I'm not trying to remove the session variable. How can I remove session variables without getting this type of error in the page?
Regards, Robert
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi Robert,
This is not a simple error. :) However It shouldn't have anything to do with the session variable --- our CallbackPanel does not deal with session variable in any way. Usually it occurs when you dynamically create a CallbackPanel but did not create the CallbackPanel control every time.
I would try to create a blank page and try to get the CallbackPanel working there first and then compare the code. Usually you will find out the cause pretty quick that way.
Thanks
|
|
Rank: Member Groups: Member
Joined: 6/29/2007 Posts: 12
|
The only way I can get this to work is to have all my WebUserControls and CallbackPanels inserted in an aspx-file, if the controls are used from an MasterPage I'll get the error messages as described above. This is not so good for my website because I have many aspx-pages that I would want to the main style inherit from one MasterPage, now I have to rebuild the style, controls for every page.
|
|
Rank: Member Groups: Member
Joined: 6/29/2007 Posts: 12
|
Well... learning by doing ;-) My problem was still there... I checked your Live Demo Source Code line by line and by comparing your code with mine I found things I did wrong in my app. I'm Newbie on these CallbackPanels but Now I think I have everything under control here!
Thanks again for great products, your support and the excellent documentation, Greetings from Finland!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi Robert,
Very happy to hear that. Please feel free to let us know if you have any more questions.
Thanks
|
|