asp.net-ajax

pdf will load if use 'save link as' but not if user clicks on the link

After submitting a form, the user is presented with a link to a pdf document. The link is straight to the document, it is not streamed. If the user right-clicks and chooses 'save link as,' the document saves and opens fine. However, if the user just clicks on the link, the browser takes a very long time to respond (I'm going to guess it...

Sys.WebForms.PageRequest error

I currently have a page that is erroring out with the Generic code of 500. I am looking for a steps I havent tried or for someone to point me in a direction for a possible solution that I haven't thought yet. This error is generated when an ajax button is clicked. Steps I have taken Check IIS logs, found nothing Check Event Viewer, ...

PageRequestManagerParserErrorException on Live Server - Help!

I'm really hoping that someone can help. I have tomorrow to get this right or we're in trouble. I apologise as I only have the details from memory, being at home. The error is this: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the re...

ajax modalpopupextender with firefox 3.6 gets displayed on the bottom of page

Hi. I have a modalpopup extender that works on IE (8) and does not work on FF I have searched google for hours but I could not find a solution yet. I do have this code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; at the start of the page. And this is t...

AjaxToolkit for 3.5 not working

I am trying to use ajaxtool kit downloaded from here for colorpicker. When i tries to use this on any of my page, it shows me an error This page is missing a HtmlHead control which is required for the CSS stylesheetlink that is being added. Please add <head runat="server" />. What can be the reason. I am using ToolScriptMa...

RegularExpressionValidator VS Ajax 1.0.20229

We have a website that runs .NET Framework 2.0 with Ajax version 10618. But as it is, that is an old version of the dll, so we planned on switching it to the "newest" version of it for the .NET Framework 2.0, the AjaxControlToolkit version 20229. On our tests, we detected a problem with the ASP control RegularExpressionValidator, whic...

ASP.NET: Async postback as I type in a text box

I have a TextBox control on a page that I want to use to filter a grid. I would like the TextBox control to asynchronously post back to the page as the user types in values into the text box; preferably at a certain interval (i.e. it waits 500 ms after the user stops typing before posting back.) How can I accomplish this in ASP.net? I k...

ASP.NET button that performs a server-side action, returns a file to download, and plays nicely with an UpdateProgress... In a single request.

I have an ASP.NET page (using ASP.NET AJAX and the Telerik RAD components) that provides a data table and an option to download data in CSV format. I have a requirement that a single button allow the user to download a data set. I have a system set up that's nearly working for me based off the solution in http://stackoverflow.com/quest...

ASP.NET a question about AJAX library. The same code doesn't work on the 2nd machine

Hi, I have the same code which using jQuery's ajax method to update progress bar. The problem is, that the code works when is developed on Visual Studio 2010 Ultimate (1st machine, .NET Framework 4) and doesn't wokr on Visual Studio 2008 Team Edition (2nd machine, .NET Framework 3.5). How's it possible ? Doesn't works - I mean that on th...

page do not respond when update panel is in progress, plz guide ?

Hi, In a page I have multiple update panels that has timer associated with them to refresh the grids. Issue is that when asynchronous request (update panel) is in progress page do not respond. If user try to click some other link to move to some other page he even can not do that until asynchronous request is completed. Is it not pos...

Cufon.refresh after asp.net ajax refresh

I have a page which uses cufon and asp:UpdatePanel. After ajax callback the new content does not replace tags with cufon. I've tried: <script type="text/javascript"> alert('Cufon refresh start!'); Cufon.refresh(); alert('Cufon must be ok!'); </script> But don't get any alert or cufon replacement. ...

How many Ajax libraries/frameworks are in the mainstream right now?

I'm trying to learn ASP.NET MVC and your first reaction might be to tell me I don't need to learn all the Ajax stuff to learn MVC. Fine, I get it. But I am not very confident if I don't know what's going on around me, i.e. in the environment surrounding my code. Since my goal is to learn ASP.NET MVC, I first tried some examples, watched...

Set a hidden field value after postback.

I have a component that determines a value on a postback event. protected void Button_Click(object s, EventArgs e) { HiddenField.Value = 5; } There's more involved in the value of course, but HiddenField is an asp:HiddenField control with runat=server set. I have in my javascript: var id = $("#<%= HiddenField.ClientID %>").val();...

ASP.NET AJAX $find always returns null in usercontrol

I want to use multiple targets with my ModalPopUp extender. One of my buttons is set as target in the ModalPopup and the other one will use server-side code to show the ModalPopup. This is my ModalPopup so far: <msAjax:ModalPopupExtender ID="modalInform" runat="server" BehaviorID="modalInform" TargetControlID="btnSear...

Call an action in ASP.NET MVC 2 with MS Ajax without jQuery

How can I call an action in ASP.NET MVC 2 with MS Ajax when I don`t want to use jQuery? ...

Invoking server code after client code for a control INSIDE AJAX PANEL - Asp.Net

I've the Javascript code to do a confirmation before deletion of some records function confirmDelete() { if(confirm('Delete all?')) { return true; } else { return false; } } I've the button code here <asp:Button ID="btnDelete" runat="server" onClientClick="return confirmDelete();" onClick="btnDelete_clic...

Scraping Data From a Dynamic Website

Background: The page has a table with data in it. There are several hyperlinks that when clicked, the data in the table is replaced with new data. Also, the page is an aspx page. Goal: I want to scrape the data in the table for all hyperlinks pressed. I have looked at what is going on via firebug and when a hyperlink is clicked, it ge...

Asp.net Mvc2 Ajax ImageActionLink Helper

I'm fairly new to Mvc and ran into a problem try to use an Image as an Ajax Action link. I found a helper that I believe was posted by Stephen Walther... using System.Web.Mvc; using System.Web.Mvc.Ajax; namespace Helpers { public static class ImageActionLinkHelper { public static string ImageActionLink(this AjaxHelper...

ASP.NET MVC AJAX with HTML.ValidationMessageFor

Hello, I'm used to the ASP.NET Webforms easy way of doing AJAX with UpdatePanels. I understand the process is much more artisanal with MVC. In a specific case, I'm using Data Annotations to validate some form inputs. I use the HTML.ValidationMessageFor helper to show an error message. If I want to use AJAX to post this form and show thi...

Invalid postback or callback argument. When clicking button

Hi, I have a web page with various controls. Two of them are dropdownlists. The first dropdownlist gets populated from an xml file on the page_load event. This works fine. To the first dropdownlist a cascadingdropdownlist extender is attached which calls a webservice each time the selection in the first dropdownlist is changed. This wor...