Tag Archives: delete

ASTreeView – Perform PostBack while deleting nodes

How to do a postback after a node being deleted? Here’s the steps: 1. Set the OnNodeDeletedScript property of ASTreeView. OnNodeDeletedScript=”deletedHandler(val)” 2. Add a hidden button and a textbox(both are server side control) to the page: <div style=”display:none;”> <asp:Button ID=”btnPostBackTrigger” runat=”server” OnClick=”btnPostBackTrigger_Click” /> <asp:TextBox ID=”txtIDContainer” runat=”server”></asp:TextBox> </div> 3. Implement the deletedHandler javascript method: <script type=”text/javascript”>… Read More »