-
Notifications
You must be signed in to change notification settings - Fork 36
p5.ajax Exception with MasterPage usage #21
Comments
Thx, I'll take a look at both of these immediately :) |
Hmmm, just fixed your other issue, but the example you provide here, seems to be having lots of references to things not related to the actual bug (jQuery inclusions, etc) Do you think you could create a reproducible that demonstrates the bug, without references to other things, not related to the issue itself ...? Please ...? |
Files: DemoMaster.Master
WebForm1.aspx
WebForm1.aspx.cs
If you execute this you'll get an Exception in line 61 of StatePersister.cs the exception is caused because of line 11 of DemoMaster.Master
If you remove that line the page execute correctly but when you click the button you'll get another exception in line 262 of Widget.cs
|
It was a little bit "tricky" to fix in fact, but there is now fresh code to be found here, that hopefully fixes your problems. I still haven't tested all possible permutations, but I've got some 500+ unit tests in System42, which I'll run before I create the next release. All the "p5.ajax-samples" Unit tests came out green though, so I doubt there'll be problems. In fact, as an additional bonus, I chose to also implement support for creating custom WebControls, using composition, implying that (I think) it should now work creating also event handlers for children controls, inside of parent controls, such that you can create your own extension WebControls, composing them of a bunch of other p5.ajax widgets, and handle events upwards somewhere in the parent hierarchy. It's not as slick as the In addition, they should work inside of UserControls, and most other scenarios I can think of ... I'll probably wrap up a new release within a week or so, just need to finish cleaning up this and this first. I haven't tested creating custom WebControls myself, since it's kind of outside of my normal everyday usage myself, since I exclusively use this in combination with Hyperlambda, and the rest of Phosphorus Five - But I think most cases should be covered ... Keep me in the loop if something doesn't behave as expected ... :) |
Did it work for you ...? |
When you have a MasterPage with <% ... %> code blocks you get an exception
Steps to reproduce:
Create a standard VS 2015 WebForm Project.
Create a new WebForm that use the default Site.Master
When you run the project you'll get an Exception in StatePersister.cs line 61
The text was updated successfully, but these errors were encountered: