I have created a plugin in PlugInArea.EditTree where I wish to list a number of tasks. Clicking one of the tasks should open a corresponding settings page in the right frame of edit mode. What is the correct way to do this? Before I have used constructs like:
<a href="#" onclick="window.parent.commandEvent(window, new window.parent.commandDescriptor('','<%=ResolveUrl("~/path/to/settingspage.axps")%>',''));">Link<a>
But is this really the way to go?
Good suggestion! I tried to set EnableViewState=false on the form element of the "settingspage.aspx" loaded in the right frame, and also on a new placeholder in the form. Neither worked. As soon as the form posts back i get:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
And I don't have a web farm, it's on my developer PC :)
Solution which you gave works only for the first time click. next time when i cleck there is no change.
can you explain in detail about the solution for this problem.
Thanks in advance
I found an alternative to this:
<a href="~/path/to/desiredPage.axps" target="EditPanel">LinkText</a>
this works :)