asp.net-ajax

Multiple target controls for ASP.net AJAX animation?

I'm trying to apply the same animation to multiple TargetControlID's -- for example, in a modal dialog, I would like to have a cancel button and a little "x" graphic in the upper right, either of which closes the dialog. Seems pretty inelegant to write two identical animations, one for each of these targets. I'd like to have one <Animat...

What does it mean when a js error points to a part of the viewstate?

I am fairly inexperienced with asp.net ajax and am having a problem where a javascript error is thrown (object not found). The debugger then stops and points to a substring of my viewstate it looks something like the following (not exactly this since my viewstate is huge) with the section between the ellipses highlighted: <input type="...

ASP.Net Ajax Performance comparisons

Is there any information showing the performance differences (primarily number of bytes sent and received) between these three ways of sending and receiving data without a full postback: UpdatePanel PageMethod Web Service By Web Service I mean calling a method within a Web Service from javascript similar to the way you would call a Pa...

UpdatePanelAnimationExtender in codebehind

Hi, Is it possible to launch onUpdated event of UpdatePanelAnimationExtender in Codebehind? ...

How can I update a ASP.NET MVC ViewData via jQuery ajax?

Hi!! I have a page that highly depends on a IList (in ActionResult "MyEvents") that I pass in ViewData. Something like that: ViewData["events"] = listOfEvents; and in the end, I just return View(); And in my View, I take this ViewData["events"] and do a foreach in it so I can iterate through its contents. But, this ViewData must be dy...

Sys.Application.add_load Problem with Modal popup extender

Hello everyone, I have the current problem, let's explain the context before : I have a Modal popup extender who contains a form. There is a feature "Save and Add New", when the user click on this button the data in the form is saved in the database during postback and the page is reloaded. I want this Modal popup to appear again on ...

asp MVC Ajax : How do I run javascript method after InsertionMode completes

I have an mvc ajax form that inserts text into an element with InsertionMode. I also want to run a javascript method after that completes but if i use "OnCompleted", the insertion does not occur and the text is put in another browser content page. How do I run a javascript method after the Ajax InsertionMode has finished? ...

Ajax onSuccess callback while not having any control over ajax calls

I have a simple JS function that needs to get called when AJAX call succeeds, however i don't have any control over the AJAX calls since the framework (DNN5) handles all that. How do i call my function on AJAX success? I use DNN5 and jQuery, if you're not familiar with DNN, just assume that all the controls on the page are wrapped in t...

jQuery stop working on updated page via Ajax in ASP.NET MVC

Hi everyone!! I have a ASP.NET MVC page of Events of a specific day. I'm also using jQuery datepicker and when I select a day, I create a function that send this selected day via Ajax to a MVC ActionResult method and this method will treat this day, will do all the database stuff and will return me all the Events of this selected day. S...

Can I use ASP.NET AJAX History without having .NET 3.5 SP1 installed?

Is it possible to use this feature on a server that only have .NET 2.0 installed? After an initial look into how AJAX history is implemented, I'm not sure it would be easy. I am just curious if anyone knows of a way to do it. ...

Graceful degradation and the AJAX Control Toolit Tabs control

I am using the ASP.NET AJAX Control Toolkit Tabs control on my site. I have three tabs, with a UserControl on each. If the user has JavaScript disabled in their browser I really need to see some graceful degradation - the contents of each tab arranged vertically would make sense. Does anyone know if this is supported/possible? ...

JavaScript Library Performance Comparisons - any resources out there?

I'm putting together a presentation to my company on the reasons I'm adopting jQuery as the preferred JavaScript / AJAX library. While most of the work is done, a comparison between different libraries would be of great use - especially against the Microsoft ASP.Net Ajax framework. Now please note I'm not after a theological debate on ...

Composit Control Textbox and AutoCompleteExtender

I'm trying to make composite web control contains TextBox and AutoCompleteExtender i followed this article http://byatool.com/?p=244 when i run the page i got nothing just empty page and i got this <div> <span id="AutoCompleteTextBox2" FirstRowSelected="false" OnClientPopulated="ClientPopulated" CompletionListHighlightedItemCssCla...

AJAX.NET and ListBoxes

I have an UpdatePanel with two ListBoxes in them. What I want to happen is that when the page loads the first ListBox fills with some data. When the user selects and item the second ListBox should be populated with the pertinent data. Here is what happens, the first ListBox is filled with data, the user selects an item and the Selecte...

AutoCompleteExtender control in a repeater

I have an AutoCompleteExtender AjaxControlToolkit control inside a repeater and need to get a name and a value from the web service. The auto complete field needs to store the name and there is a hidden field that needs to store the value. When trying to do this outside of a repeater I normally have the event OnClientItemSelected call ...

thickbox ajax URL in hotspot Response.Redirect

Hey all, I'm creating a loop in C# to define that each hotspot in an imagemap, opens a ThickBox inline content windows.This is the code for the ThickBox inline content link: <a href="#TB_inline?height=155&width=300&inlineId=hiddenModalContent&modal=true" class="thickbox">Show hidden modal content.</a> Here's my code behind the imagema...

History management problem in ASP.net

I created a simple page with an UpdatePanel, inside that I have a couple of asp Panel controls, all with the Visible property set to false except for one. When the user clicks on some buttons on the side menu, the Visible property switches between the Panels being displayed, giving the user the cool & slick ajax feel. On the scriptManag...

Distinction between Ajax 'success' and successful method call?

I have an jquery .ajax posting to a asp.net mvc method that has an 'authorized' attribute. Ajax callback is successful even when the user is not authorized to post to the action. First, what is the ajax success callback basing the success on? Second, to test whether the actual method was carried out, I returned a "success" string from t...

Ajax Script Manager and Master Pages

I'm building a new website and want to use Ajax controls. Do I need to put a ScriptManager control on both the MasterPage and on each content page? or Just on the MasterPage?(or just on the content page?) ...

Closing an IE 'popup' window with script.

Is it at all possible to disable the "The webpage you are viewing is trying to close the window. Do you want to close it?"? I understand that this is the product of years of virus, and malicious script activity, but in legit app code, (ASP.NET), is there any way to like "register" your app as an APP, or flags you can pass to an IE Pop...