asp.net-ajax

ASP.NET Ajax - Autocompleteextender control appears behind other controls

To be specific I have a search form with an autocompleteextender at the top. When you type in a string, it autocompletes with matches in a drop down as expected. The problem is that a couple of SliderExtender controls further down the form are appearing above the autocomplete dropdown (it is not covering these controls). I've looked ...

CalendarExtender Positioning Problem

I am adding a CalendarExtender to a page, using the default styles. When I click the calendar button to trigger the calendar popup, the calendar displays normally. However, when I scroll down and click the button again, the calendar's position is not where it should be, as seen below. Why is this occuring and how do I fix it? EDIT:...

Creating an Ajax.ActionLink using javascript

I have a Todo List (an ASP.MVC UserControl) that for each row has the name of the task (that can be clicked to toggle between done/outstanding) and a delete button for removing the task - Both are created using Ajax.ActionLink to query the server. When creating a new row I need the task text and delete button to be ActionLinks, how woul...

Check contents of a hidden field in javascript.

I have a hidden field and I add string to it, separated by semicolon. How I can I check the duplication when adding a new string? I am doing as function AddToHiddenField(source, hdnFiledId) { var srcList = document.getElementById(source); var hdnFieldSubstring = document.getElementById(hdnFieldId); var len =...

Getting Exception Details from ASP.NET PageMethods on the Client SIde

I am having a pagemethod to which i give a call from my JavaScript say Pagemethods.MyMethod(MyParameter, onsucess, onfailure); In the Code behind, I have something like this: [WebMethod] public static void MyMethod(Param) { try{ //DoSomething.. } catch(exception ex) { //Log the exception and rethrow thr...

How can I debug "/mysite/null" resource request?

I've been trying to work out why our pages load slowly, and one thing I've noticed in Fiddler is that each page load for /mysite/mypage.aspx brings with it a request for GET /mysite/null HTTP/1.1, resulting in a 404 error. I'm guessing this 404 error on every page load is slowing the site down even further, are there any ways of debugg...

ASP .NET AJAX: UpdatePanel uploads entire page on postback ?

Can someone explain how UpdatePanel works ? What is uploaded when UpdatePanel make a postback ? I know how to update partial content, but how about uploading only a part of the page ? It's not about UploadFile control, it's about postback upload. Are all controls from the page send through postback on UploadPanel postback ? ...

Function.createCallback doesn't pass context correctly in FireFox

I've discovered what seems to be a bug in how the MS AJAX library interacts with FireFox -- but maybe I'm just doing it wrong. I've got a script that looks something like this: dowork({ value: "some value", currentRetry: 0 }); // Try to connect at least 10 times, with a second in-between retries.. function dowork(request) ...

How to set the position of the Ajax modalpopupextender

Can the position of the Ajax modalpopupextender be set either to an absolute or relative position on the page? The default puts it at page center and I haven't found a way to override this. I would like to position the popup close to the control that triggers it. ...

How can I call a JavaScript function defined in a PartialView after an AJAX request completes?

Here is my partial view: <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <script type="text/javascript"> function myFunction() { .... } </script> ....other html content ... On my page, I have a link that calls a controller action to render the partial view: <%= Ajax.ActionLink(..., new AjaxOptions { ..., On...

Ajax and Brower Navigation for Back/Forward

I am using a ASP.net form with custom onclick mouse events to modify data values. Upon clicking and updating the values, one div section of the form performs a postback. onclick="__doPostBack('ctl01$phCon1$gridReports','sel1')" This is working well, however when the browser BACK option is selected, the browser opens goes through the ...

How do I do server round-trips inside an ASP.NET AJAX ModalPopupExtender?

Imagine an ASP.NET data input form with a "client" entry field. The dataset of possible clients numbers in the millions. What I would like to do is put an asp:LinkButton control labeled "Look-up Client" on the form which would launch a modal AJAX form allowing the user to search by fields such as last/first name, address, phone, etc, and...

Problem with Ajax control

hi 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 please help me ...

Safari and ASP.NET AJAX PageRequestManager.add_endRequest Function Not Always Firing

Here's the background info first. ASP.NET 2.0 Web Site with AJAX Extensions 1.0. I have a weird issue that only occurs in Safari and I can only assume Chrome as well since they both use WebKit. I also use jQuery in the site, but currently the reference to jQuery is only loaded on one page so I don't think this is the issue. I have a f...

registerClientScriptBlock in custom handler?

I'm using a custom control in ASP.NET that handles file uploading for me. The control has a handler in the code-behind using something like this: Protected Sub UploadFileComplete(ByVal sender As Object, ByVal e As UploadControl.FileUploadCompleteEventArgs) Handles UploadControl.FileUploadComplete Within that sub, I post back to the se...

IE7 Javascript Performance...

I am trying to develop a application that has quite a bit of client side based scripts. The page has sections that interact with each other based on different inputs. The problem is when you get alot of content on the page the page slows down DRAMATICALLY in IE7 due to the poor javascript engine integrated with this browswer and also pa...

Ajax function throwing WebServiceFailedException

I am using same asp.net page to edit and add data, only with some fields disabled and enabled accordingly. Now when I call webmethod from the add page, it's working fine, but when I call it from edit page, it is not. Though I am using the same javascript function to call the server side method. Please see the code: .aspx: function KeyCh...

ASP.Net 3.5 Ajax working in Subdomain but NOT Subdirectory

I have a problem that I have been fighting for a couple of days now. I have developed a web application in VS 2008 SP1 utilizing many of the available .Net 3.5 AJAX functionality, as well as a lot of jQuery code. When testing on my local machine (XP Pro SP3, .Net 3.5 SP1), the application works great. This application is being deployed t...

In my ASP.NET app, registering a script from code-behind before a page has loaded throws an "operation aborted" error in IE

I understand that in IE 5.5, 6, and 7, when you modify a DOM element before it is 'closed', it throws an "operation aborted" error (this article has more information: http://www.clientcide.com/code-snippets/manipulating-the-dom/ie-and-operation-aborted/) In my ASP.Net application, I am registering a client script block on the page durin...

Passing variable to Ajax.ActionLink OnSuccess, OnComplete, OnFailure, etc

I'd like to put a div on my master page that I can update from anywhere in my site with updates. i.e. "recorded updated", "there was an error", etc. I'm going to style the div differently depending on the type of update. "fail", "success", "info". Basic stuff so far. So I have several ActionLinks throughout the site and they display ...