Mikalai Sauchanka wrote:
Hey guys,
Have not yet resolved the issue.
@Timo, sorry, not sure what you mean by "custom skin object", but I have a custom skin, with index.ascx and other skin-related views, resources etc. In index.ascx, if I put:
<% IF ... %> or <%=... %>
the page, where the skin is applied, reloads after doing drag-n-drop. Same for built-in skins.
I tried wrapping these constructions into UpdatePanels, but I don't feel that this is the right approach and won't cause side affects. Moreover UpdatePanel stops working if I have a ContentPane in it.
Would appreciate any ideas, suggestions, cause more and more people start using DNN9 and complaining of that reloads.
Regards,
Nick
I currently have no time to test myself, but here's a suggestion:
I'm not sure why this postback happens, but I'm wondering if it also happens with this kind of code inside a skin object.
If not you could move your logic to a skin object to prevent the postback (as a quick solution).
Please download a skin object (like our style helper skin object, or another one) and test if that causes a postback too.
If not I suggest you move your logic to a skin object, I'll have a bit more time next week, so I think I can walk you though how you do that.