asp.net-ajax

Using telerik's RadAjaxManager with nested ASCX controls

孤人 提交于 2019-12-11 07:51:41
问题 I want to use telerik's RadAjaxManager with nested ASCX controls I have the following setup: Page ascx1 ascx2 ascx2 is nested in ascx1 which is in Page. I have a RadAjaxManager on 'Page'. From a control in ascx2, I invoke a javascript method which calls ajax.ajaxRequest(arguments); The problem is that it runs protected void AjaxManager_AjaxRequest(object sender, AjaxRequestEventArgs e) in ascx1 and not the one in ascx2 -- Am I missing something? 回答1: On you child controls you should use the:

Error with the ajax and transaction in mvc

烈酒焚心 提交于 2019-12-11 07:51:20
问题 I have the ajax is : <script> $( document ).ready(function(){ $('#addtocart').click(function () { var size = $('#ddlsize').val(); var color = $('#ddlcolor').val(); var id ='@Model.ProductId'; alert(size + color +id); $.ajax({ url: '@Url.Action("AddTocart", "ShoppingCart")', data: { id: id, size: size, color: color, }, dataType: "html", type: 'POST', success: function (data) { alert("Da them vao gio hang"); }, error: function () { alert("Co loi xay ra vui long thu lai"); } }); }); }); </script

Ajax based Dashboard On LargeData

五迷三道 提交于 2019-12-11 07:49:11
问题 I am working on some sort of CRM application which has huge sales data with all the customer leads etc (ASP.NET 2.0/Ajax) I want to create a dashboard which will have four separate data containers each container will have different sort of data and each container has to update it self after some configured time interval. so I want to update only that part of page not whole page What should I used in the above scenario asp.net updatePanel or jQuery implementation (which technique and why)

Formview and MS-Ajax UpdatePanel

牧云@^-^@ 提交于 2019-12-11 07:48:17
问题 I have an issue with the conditional display of the formview edit button after a partial postback triggered by the formview control. I have an edit button defined in the ItemTemplate like this: <asp:FormView ID="fvGenericDetails" runat="server"> <ItemTemplate> <asp:Button ID="btnEditGenericDetails" runat="server" Visible="false" CausesValidation="False" CssClass="prepend-top" CommandName="Edit" Text="Edit Generic Details" /> </ItemTemplate> The button is conditionally displayed based on user

Button event doesn't fire inside Update panel for FileUpload

大兔子大兔子 提交于 2019-12-11 07:46:05
问题 I have a asp.net web form Page which uses master page also. This is a simple page which displays some text and has a form, this page also allows user to upload resume in .doc, .docx & pdf format. Problem with this code is that i am not able to trigger for some reason <asp:Button ID="btnUploadCV" runat="server" Text="Upload" CssClass="btnUpload" onclick="btnUploadCV_Click"/> <%@ Page Title="" Language="C#" MasterPageFile="~/en/SiteMasterPage.master" AutoEventWireup="true" CodeFile="career.aspx

Calling a function / database update using Ajax via Jquery

不想你离开。 提交于 2019-12-11 07:39:43
问题 Im creating a simple "Was this useful?" form with Yes and No objects- Using ASP.net webforms. I need the submission to be done via ajax using jquery, to prevent a user from voting multiple times on the same page.. currently i have two methods Like_Click and Dislike_click in the C# code behind the page in question. Can anyone give me some pointers on or a link to any suitable walkthroughs for simple ajax via jquery (I'm new to ajax!) Ive looked at using the [WebMethod] identifier on each of

ASP.NET AJAX UpdateProgress in User Control for UpdatePanel in parent page

这一生的挚爱 提交于 2019-12-11 07:37:42
问题 I'm working on an ASP.NET web forms application. In my Page I have an UpdatePanel and a user control with an UpdateProgress and a bunch of buttons. When the user clicks one of the buttons, I'd like to perform an asynchronous postback and show the UpdateProgress . Can anyone help me with making the postback asynchronous (looks like it works) as well as making the UpdateProgress appear (doesn't work yet)? Usually, this can be done pretty easily by defining an UpdateTrigger in the page markup.

How do I prevent resetting Session timeout when UpdatePanel's content is refreshed by a Timer event?

自闭症网瘾萝莉.ら 提交于 2019-12-11 07:33:55
问题 We have several pages in our ASP.net Ajax application which auto refresh the UpdatePanels contents based on a timer event but the problem is that we have a requirement to timeout the web session and the auto refresh is preventing that. Is there a way to prevent the timer postback event from modifying the web session or any other alternate solution to allow the web session to timeout while auto refreshing the UpdatePanel contents? Here is an example to illustrate this problem. I set the

Is there a way to detect when an update panel is done refreshing?

ⅰ亾dé卋堺 提交于 2019-12-11 07:28:09
问题 Is there a way to detect when an update panel is done refreshing? I want to fire some javascript methods when the update panel is finished. Perhaps via the UpdateProgress control? 回答1: You can use: Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler); function EndRequestHandler(sender, args) { // do what you want here } Of course, this will caputure every AJAX EndRequest call so you'll have to make your EndRequestHandler function see what has been requested or play

How to build the CRUD with Ajax json format between jQuery Bootgrid and C# (instead of JqGrid to deal with this issue)

时光怂恿深爱的人放手 提交于 2019-12-11 07:19:58
问题 Hi all I have been looking for a lot of relative resource to deal with my problem, however it isn't useful to me, even if I have checked the "jQuery Bootgrid" and many websites , I still didn't find any great example out, hopefully someone who really know it can help me to give me any slim clues or any good simple. By the way, 1. I wish I can use Ajax to update and see any modifies data between Browser and DB 2. Plesae give me example code Thanks Some problems issue 1.Ajax Connection Front