asp.net-ajax

Why is the form action attribute empty on production server?

核能气质少年 提交于 2019-12-02 00:20:18
After deploying a ASP.NET WebForms application to a production server some of the ajax calls has stopped working for me. After some debugging I found out that the following statement (in the internal client-method WebForm_DoCallback) was causing the problem: xmlRequest.open("POST", action, true); The problem seemed to be that the action-variable was empty so after checking the rendered html I found out that the form-tag rendered on the production server looks like: <form method="post" action="" id="Form1"> However, on my developer machine I get the following: <form method="post" action=

Accordian ajax control gives JScript runtime error

此生再无相见时 提交于 2019-12-01 22:59:09
I'm using Accordian control of ajax toolkit. I'm getting the following error: Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors. Parameter name: element Andy S. I just ran into this problem as a result of having commented out a block of old HTML ( <!-- ... --> ) which contained textboxes and maskededitextenders. When I removed that HTML the error stopped occurring. There could be a whole host of problems associated with this error. Not much to go on, but here are some possibilities Check the visibility settings of the Accordion.

how to update a control in another updatepanel?

一世执手 提交于 2019-12-01 21:33:17
I have three updatepanels in hierarchy: UpdatePanel1--Root UpdatePanelChild1 UpdatePanelChild2 Can I update a control in updatePanel1 on an event of the updatepanel2? I'm not a big fan of every updatepanel updating all the time - that seems to undo the locality update panels get you. Another option is to specifically call the .Update() method of the OTHER update panel in your code. For example, suppose you have a button on UppdatePanelChild1 that does some processing and modifies a control in UpdatePanel2: textBoxInsideUpdatePanel2.Text = "Updated!"; UpdatePanel2.Update(); Yes, the easiest way

Button inside Update Panel is not triggered, in asp.net

旧时模样 提交于 2019-12-01 21:28:30
<asp:ModalPopupExtender ID="MPE_EditGroup" runat="server" TargetControlID="btnShowPopup" PopupControlID="pnlpopup" CancelControlID="btnCancel" /> <asp:ToolkitScriptManager ID="ScriptManager1" runat="server" /> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false"> <ContentTemplate> <asp:Panel ID="pnlpopup" runat="server"> <asp:ListBox ID="lst_allmembers" DataValueField="FirstName" runat="server" /> <asp:Button ID="btn_Add" runat="server" Text="Add" OnClick="btn_Add_Click" /><asp:ListBox ID="lst_grpmembers" runat="server" /> <asp:Button ID="btn

What is the “UpdatePanel”? [closed]

久未见 提交于 2019-12-01 20:11:48
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years ago . what is the main purpose of UpdatePanel in ASP.Net ? And what is the of Triggers tag in UpdatePanel ? 回答1: An UpdatePanel is a set of components that you want to be affected by ajaxified updates in your

What is the “UpdatePanel”? [closed]

怎甘沉沦 提交于 2019-12-01 18:12:58
what is the main purpose of UpdatePanel in ASP.Net ? And what is the of Triggers tag in UpdatePanel ? An UpdatePanel is a set of components that you want to be affected by ajaxified updates in your webapplication. The triggers are what causes the panel of components to update. If you want to know more about asp.net ajax and update panel please read How Ajax for ASP.NET updatepanels work . 来源: https://stackoverflow.com/questions/2904231/what-is-the-updatepanel

Why Ajax.BeginForm redirect to new empty page after submission?

北慕城南 提交于 2019-12-01 16:14:05
问题 Why Ajax.BeginForm redirect my page to new empty page after submission? My controller code is: [HttpPost] public void ProductCommentAdd(int productId, string text) { //Do something } Mvc ajax call in view is: @using (Ajax.BeginForm("ProductCommentAdd", "Shop", new AjaxOptions() { HttpMethod = "POST"})) { <input type="hidden" value="@Model.ProductId" name="ProductId"/> <textarea name="text"></textarea> <input type="submit" value="Submit" } When I click submit button my page redirect to new

Making a difference between AsyncPostbacks in nested UpdatePanels in Asp.Net AJAX

放肆的年华 提交于 2019-12-01 14:21:18
In an ASP.net AJAX project (WebForms), I have an UpdatePanel, and in UpdatePanel i have multiple nested Controls with UpdatePanels, basically i have control trees. The Parent Control is huge and very important part of the site i cannot touch it,(and also it is reused on many places),the UpdatePanel shoud remain on current position. The child controls in the update panel have functionality's wich are separated from each other(also they are separated with UpdatePanel),to be able to refresh just a piece from a control. Basically on Page_Load() i have code wich fullfill every Child control with

jQuery Modal Window to Display a Table in MVC

放肆的年华 提交于 2019-12-01 13:39:43
Let me start of by saying that I am inexperienced with JavaScript. Here is what I want to do. When the user clicks "Show Details" on a row of data, they get a pop-up (modal?) window that has some data generated from another action within the MVC application. Where can I find an example of implementing something like this? Also, when a user clicks "Approve" on either this pop-up or on the original data row another pop-up will display with a form a person needs to fill out. Any direction will be greatly appreciated. First of all, you will need a DIV somewhere on your page - let say give it an id

Cannot do response.redirect from page with Ajax controls

℡╲_俬逩灬. 提交于 2019-12-01 13:09:52
I have a page that contains many user controls, each of which uses Ajax. When I load this page, under certain conditions, I want to do a response.redirect; however response.redirect statement is being trapped by Ajax code and never happens. How do I do a response.redirect from a page that contains Ajax controls? Thanks.... Instead of using Response.Redirect, you can use Javascript to redirect. window.location = "[url to redirect]"; add this to your web.config: <httpModules> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture