asp.net-ajax

How to update a div with Ajax.BeginForm AND execute a javascript function?

I am updating a div with a partial view by using something like this: <% using (Ajax.BeginForm("Action", "Controller", new { id=Model.id }, new AjaxOptions { UpdateTargetId = "divId", InsertionMode = InsertionMode.InsertAfter, })) { %> ...

Passing an array of objects from jQuery to ASP.NET Webmethod() returns error

I have a javascript class that's as below function paramObj(test_id,uid,qid,ai) { this.test_id = test_id; this.uid = uid; this.question_id = qid; this.ansIndex = ai; } I fill an array with several of these objects and send them to my ASP.NET C# WebMethod defined as [WebMethod()] [System.Web.Script.Services.Sc...

.Net MVC Ajax and Scriptmanager conflict

Hello all, We have a simple ajax link (Ajax.ActionLink(...)) that has been working fine. Recently, another developer added some ajax-ey code to the same page that uses an asp scriptmanager ... now suddenly the first ajax link no longer works. More specifically we get the error : "sys.mvc.asynchyperlink' is null or not an object". Below ...

FileUpload Control inside child UpdatePanel Not Working: FileUpload.Hasfile is always False

I am using ajax toolkit PopupControl Extender to display row details of a gridview. The gridview is inside an Update panel. inside the popup window, there is a FileUpload control inside another UpdatePanel. In the child UpdatePanel where the FileUplad control sits, I set the trigger to a linkbutton which will upload file and update the d...

ASP.NET Ajax client-side framework failed to load .net 4.0

Good Evening, I am experiencing a strange problem. I only experience the problem when the site has been deployed to IIS 7.0. The web page renders fine when launched in VS 2010; however when viewed to IIS 7.0 the entire page gets shifted to the right. errors only happen when this is on the .aspx page <telerik:RadScriptManager ID="RadSc...

Fileupload inside Updatepanel which in Usercontrol?

i am doing Fileupload using asp.net 3.5 with asp.net ajax.In that i am using Usercontrol MainPage.ascx Page:In this page i am using UpdatePanel inside Fileupload control. Demo.aspx:In this page also i am using Updatepanel. i am drag MainPage.ascx usercontrol inside this UpdatePanel which is in Demo.aspx. Question: When i drag the Mainp...

How to hijack form submit event when triggered by dropdownlist change

On my webpage I am displaying a table of data and I want to give the user the ability to sort that data by using a dropdownlist (e.g. By FirstName, By LastName, By State etc...). I would like to use Ajax to load the sorted data into the data table without a page refresh. I'd also like to use javascript in an unobtrusive way so that the ...

Multiple UpdateProgress controls

I've been working on this sissue for several days and have not been able to get it working. I have an application where I use multiple gridviews on same page. For each gridview I need to show update progress and since I'm using external triggers I am not able to display progress control in my Java Script. Can someone please help me out?...

Cannot update .Text property of asp:TextBox inside asp:UpdatePanel

I have several dropdownlists and textboxes inside an <asp:UpdatePanel>, which should let me edit some details after selecting an item inside an <asp:GridView>. The grid is not inside the updatepanel. From the UpdatePanels' .Load() method, I change the .Text of a few <asp:Label>, <asp:TextBox>, and I set the .SelectedValue of some <asp:D...

Is the MSFT AJAX Animation control the correct one to do this animation:

I need to have a stack of 10 text lines, possibly div's, and insert a line arbitrarily somehere in the list. In addition I'd like to fade in a highlight (for the new line) and fade out. Is MSFT AJAX the correct tool to use for this? ...

Firing an event from an ascx control in order to update some controls in the container.

I am firing an event from an ascx control in order to update some controls in the container to which the ascx control belongs. The ascx control is displayed via a modal popup extender. When I click a button inside the ascx, I fire an event to which the container containing the ascx control is subscribes. The event delegate is fired and...

Update progress position?

My update progress displays under the update panel. Is there a way to display it near the control which caused the async postback? I have a very long form so users might not scroll all the way down and see the progress at all. Edit I am using a table for my layout inside the update panel. The update progress is placed right after the t...

Infragistics "Cant init Editor" Error in Sharepoint

Hi, I deployed sharepoint with infragistics couple of weeks ago. it was working fine then but now i am getting error "Cant init Editor" in infragistics controls which are deployed on sharepoint. i have try to debug this problem with many angles but in vain. can anybody have the solution for that. i am using infragistics assembly vers...

Is it possible to do an AJAX callback before each AJAX-postback for asp.net webforms?

In a nutshell: Whenever a postback would occur (AJAX'ed by an UpdatePanel) I want to do a callback beforehand and only after the callback has completed (either successfully or not) should the postback occur. How can I do this? Elaborate explanation: We use ASP.NET AJAX (UpdatePanel 'n stuff) together with DevExpress controls. Among th...

How do I build a "stoplight" state indicator button using jQuery?

As my first jQuery project, I'm trying to write a "stoplight" status indicator that cycles through "off", "green", "yellow", and "red" circle images and POSTs the information so I can record it in a DB. I'm currently trying to use the toggle() function, and it works except that I have no way to "initialize" the value to the preexisting ...

Returning value from ajax method to javascript method

Hi, I am trying to call a javascript method(fncApplicationAccess, which has a ajax call and resides in a .js file) from another javascript method "ShowWarning". I need to take decision in the "ShowWarning" javascript method with the return result from the fncApplicationAccess method. function ShowWarning(appId, ctrl,act) { ...

Making AJAX call back in ASP.NET with jQuery

I accept both C# and VB.NET If you visit this http://www.eol.org/pages/983558 and then click on the link like the image below you'll see in-line pop-up DIV which displays a busy status of Ajax callback before it displays the information. So, the information is not there yet until you click on the link. I'd like to do the same but...

PostbackUrl messing up UpdatePanel async postback.

So here is the situation. I have a page with two custom controls. One of these controls contains an UpdatePanel, and this has worked correctly for a very long time. There is another user control which has two LinkButtons, that have recently been switched over to use PostbackUrl instead of the simple . Having a LinkButton with a Postbac...

How can I use jQuery Ajax and PageMethods with instance variables?

One reason we currently use UpdatePanels for doing our AJAX is because our BL and DA layers pass around the Page.User.Identity for authentication. Is there a way to access this? ...

Asp.NET AJAX control update field on form

I have a form with several text fields, a couple of drop down lists, and a custom asp.net control. The requirement I have is that when the values of certain fields ( some are in the main form, some are inside the control ) the user will be alerted that the settings will not take place unless they also restart the processing and will hav...