FAQ Database Discussion Community


UpdatePanel don't keep my dynamic controls

asp.net,updatepanel,postback,ajaxcontroltoolkit
I have a table in an UpdatePanel, and under this Table a button who dynamically add new rows. When I press the button for the first time, a row is generated. But if I click on the button a second time, a new row is generated but the first row...

Update panel not working in two asp panel

c#,asp.net,updatepanel
In my ascx page I have two panel,I trying to change these panels inside an update panel.but the page load is going on each click on radio button.here is my code <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:Panel ID="Panel2" runat="server" > <asp:RadioButtonList runat="server" ID="radioListAnswers" RepeatDirection="Horizontal" AutoPostBack="true" ClientIDMode="Static"...

Change style of an item inside updatepanel dynamically

updatepanel
I have an image inside an updatepanel. When I click on the image it needs to be highlighted. I use addclass and removeclass to make this work, if it is outside updatepanel. When I put the image inside the updatepanel, the css is applied but then reverts to original after...

bootstrap popover doesn't work in asp.net updatepanel

asp.net,updatepanel,bootstrap,popover
I'm using bootstrap popover in a update panel in my asp page that it doesn't work. when I put it out of update panel it's OK, please help me.

Session variable gets destroyed/nulled after UpdatePanel refreshes

asp.net,session,updatepanel,session-variables
I have a button inside an Update Panel and the button added as a trigger. On the click event of the button, a session is assigned: <Triggers> <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" /> </Triggers> protected void Button1_Click(object sender, EventArgs e) { Session["Groupname"] = "aaa"; UpdatePanel2.Update(); } However after the update panel's refresh,...

asp.net linkbutton does not fire with nested childs in updatepanel

asp.net,ajax,updatepanel,linkbutton
i have a problem with nested child element in use asp.net linkbutton within updatepanel. when i use a linkbutton in updatepanel, onclick event is works fine by ajax request: <asp:updatepanel runat="server" childrenastriggers="true"> <contenttemplate> <asp:repeater runat="server" id="myrpt"> <itemtemplate> <asp:linkbutton runat="server">click me</asp:linkbutton> </itemtemplate> </asp:repeater> </contenttemplate> </asp:updatepanel> so, when i insert a html...

UpdatePanel AsyncPostbackTrigger not firing

asp.net,ajax,webforms,updatepanel
I've got a little problem, any help is appreciated. Situation looks like this: <asp:UpdatePanel ID="UP_Panel" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:DropDownList ID="ddlSwitch" runat="server" Width="250px" AutoPostback="true" OnSelectedIndexChanged="ddlSwitch_SelectedIndexChanged"> <asp:ListItem Value="continent" Text="Continent"></asp:ListItem> <asp:ListItem Value="region" Text="Region"></asp:ListItem> <asp:ListItem Value="country"...

UpdatePanel and Javacript Issue

javascript,asp.net,ajax,updatepanel
I have a form with a few fields in it all present inside an update panel. I also have a save button which is present inside the update panel. On click I do some javascript validation to check in fields have values in them and if so postback and save...

Why am I receiving a replace function error when typing into a textarea

javascript,jquery,asp.net,updatepanel
I have two separate jquery popup, one of which is populated from a GridView data: //THIS IS THE POPUP WHICH PRE POPULATES THE TEXTAREA VALUE FROM THE GRIDVIEW <asp:UpdatePanel runat="server" ID="upPop" UpdateMode="Conditional"> <ContentTemplate> <div id="popupContactEM"> <a id="popupContactCloseEM" title="Close Window">x</a> <div id="dvFourthEM" class="mainFirst"> <div id="leftdiv1EM" class="leftdivspec"><sup style="color: #FF0000; font-weight: bold;">*</sup>Message:<br /><br...

asp:dropdownlist in my usercontrol wont postback onselectedindexchanged

c#,asp.net,user-controls,updatepanel,postback
I cannot get the asp:dropdown list in my usercontrol to postback to update the number of days. The usercontrol: <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Profile.ascx.cs" Inherits="TestApp2.Views.Profile" %> <asp:UpdatePanel ID="ProfileMainUpdatePanel" runat="server"> <ContentTemplate> <div class="form-group profile-form"> <asp:DropDownList runat="server" id="selYear" class="form-control profile-date right-align" OnSelectedIndexChanged="selYear_SelectedIndexChanged" />...

Change text in UpdatePanel

c#,asp.net,asp.net-ajax,updatepanel
I am new with ASP.NET. This is my code: <asp:UpdatePanel runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:Button Text="Change" runat="server" ID="BtnChangeText" OnClick="BtnChangeText_OnClick"/> <asp:Label runat="server" ID="LblTest" Text="Change me!"></asp:Label> </ContentTemplate> </asp:UpdatePanel> This is my server code: protected void BtnChangeText_OnClick(object sender, EventArgs e) { LblTest.Text = "Hello World!"; } Why does it not work?. How can I...

asp.net updatepanel inside usercontrol reload the whole control

asp.net,updatepanel
I want to create a user control that represents a progress bar. ASCX: <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProgressBar.ascx.cs" Inherits="A2Controls.Controls.ProgressBar" %> <div class="progress"> <div class="progress-bar" role="progressbar" aria-valuenow="<%# this.Value %>" aria-valuemin="0" aria-valuemax="100" style="width: <%# this.Value %>%"> <span class="sr-only"><%# this.Value %> Complete</span> </div> </div> Code Behind: public partial class...

AngularJS events with ASP.NET UpdatePanel

asp.net,angularjs,updatepanel
I'm trying to use AngularJS within an ASP UpdatePanel, very much like in this question: AngularJS with ASP.NET Updatepanel partial update That solution also helped a lot, at least regarding the static parts, ie everything showed upon initialization. Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function (sender, args) { var elem = angular.element(document.getElementById("myDiv")); var newElem = $compile(elem)($scope);...

JavaScript stops working after partial refresh

javascript,c#,asp.net,twitter-bootstrap,updatepanel
I have placed JavaScript in an update panel with the hope that it would run. One particular script applies bootstrap pagination to the grid view. However when the page button is clicked and the update panel is refreshed the script stops working and the buttons revert back to links. I...

update listview in updatepanel and postback on masterpage

c#,asp.net,listview,updatepanel
we have this updatepanel with this listview. <asp:UpdatePanel ID="searchResultUpdate" runat="server"> <Triggers><asp:AsyncPostBackTrigger ControlID="submitBT"/></Triggers> <ContentTemplate> <div id="status" runat="server" /> <asp:ListView ID="searchResultLV" runat="server" OnItemCommand="searchResultLV_ItemCommand" DataKeyNames="Message_id" OnItemDeleting="searchResultLV_ItemDeleting"> <LayoutTemplate> <table class="table table-hover"> <tr runat="server"...

Multiple users causes database row to get updated for each user accessing page with Timer

asp.net,sql-server,vbscript,timer,updatepanel
When there is only one user, the page behaves. When multiple users are accessing the page, each user's Timer1 is causing Table1's column1 (boolean) to switch to False. The more users, the crazier the chaos. I have a database trigger (triggerX) on another table (TableX) for when every time a...

Saving asp:Panel state

c#,asp.net,asp.net-mvc,updatepanel,pageload
I'm working on a project in ASP.net (C#) and I have some trouble in concern with the asp:Panel. Basically, I have an asp:UpdatePanel in which I have a asp:Panel; I Also have asp:TextBox and a button. What I want to do is that : when the user enters text in...

Timer in asp.net works perfectly in localhost but not online

c#,asp.net,timer,updatepanel
Timer in asp.net works when I run the application in localhost and when I upload and check online timer just don't work. I have a condition when user click on "Request Item" button, in a label a message should show as "Submitted successfully" else "Some Error Message". So, What I...