Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

UpdatePanel is not working

$
0
0

I'm inserting something in mysql database entered by the user in a pop up modal box and then that text is shown in a treeview. So when the save button is clicked the treeview part should auto refresh showing the recently added text. but it is not working and I still have to refresh the page to see the newly inserted text :/

Here is the code

<asp:ScriptManager  ID="ScriptManager1" runat="server" /><asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="updatePanel1"><ContentTemplate><asp:TreeView runat="Server" ExpandImageUrl="~/images/database.png" CollapseImageUrl="~/images/database.png" OnTreeNodePopulate="Node_Populate" ID="tvwauthors" >      <Nodes><asp:TreeNode Text="Existing Database" PopulateOnDemand="true" Value="0"/></Nodes></asp:TreeView></div><div id="dialog-1" title="Add new Database">
      	Database name: <asp:TextBox ID="name" runat="server" ></asp:TextBox><asp:Button Text="Save" class="btn btn-danger" runat="server" id="saveButton" CausesValidation="false" OnClick="SaveDB" style="padding-left:2%;padding-right:2%;" /> </div></ContentTemplate>  <Triggers><asp:AsyncPostBackTrigger ControlID="saveButton" EventName="Click" />        </Triggers></asp:UpdatePanel>     


Viewing all articles
Browse latest Browse all 5678

Trending Articles