asp.net-ajax

ASP.NET MVC 2 Preview 2 under Mono in Linux

I am actually successfully running a production website with ASP.NET MVC under Mono in a Ubuntu LTS Linux. This server is located somewhere in the cloud and it rocks! Today, I have tried to make it all work with ASP.NET MVC 2 Preview 2, which can be found here: ASP.NET MVC 2 Preview 2 I have downloaded the source code because I wanted ...

Strange js array assign bug in IE8

This code causes a strange bug in ie8. It comes from MicrosoftAjaxAdoNet.js in link text function Sys$Data$_AdoNetBatchWriter$startChangeSet() { this._changesetBoundary = "changeset_" + this._createBoundary(); this._changesetEntries = []; } Before calling this function, this._changesetEntries is always null. I e...

ASP.NET Ajax Toolkit: What is the maximum number of items in ComboBox?

Hi everyone. Im building a small form using ComboBoxes with lots of items, and it seems after exactly 510 items added, the ComboBox stops working, and the combo button is hidden. Is there any maximum number of items that can be added? Or this might be other problem? Thanks in advance ...

asp.net - validation error

im getting this error when i click my radio button, what is the solution for this------ invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate f...

Not Ajax-related controls in AjaxControlToolkit?

Why AjaxControlToolkit contains controls like DropShadow that are not related to Ajax really? Such controls just make use of JavaScript and does not send or receive any data to/from server? ...

Calling ASP.NET MVC Controller explicitly via AJAX

I know that I can use following piece of code to refresh a div: <%=Ajax.ActionLink( "Update", "Administration", new AjaxOptions { UpdateTargetId = "grid", LoadingElementId = "grid-wait" } ) %> But this creates a link; user will have to click on it to get the view refreshed. How can I make it automatic, i.e., like say if I want the gr...

Method error 12029

I am getting method error 12029 in my web application which is fetching the data from the database, this error occurs when the connection to our database server cannot be established or when the page is not able to retrieve the data from the DB Actual scenario in which this error usually occurs is: I have got a cascading dropdown list ...

ModalPopupExtender - programmatic changes made to the settings of the related Panel have no effect

I have a popup extender linked to a panel as illustrated by the markup below: <asp:Button runat="server" ID="buttonViewQuestionPopupController" style="display:none" /> <ajaxToolkit:ModalPopupExtender runat="server" ID="popupViewQuestion" PopupControlID="panelViewQuestion" TargetControlID="buttonViewQuestionPopupCo...

AjaxControlToolkit.dll.refresh

What is the role of AjaxControlToolkit.dll.refresh file ? ...

InvalidOperationException: PostBack Trigger Cannot Find a Control within the ItemTemplate of a DataList

Hi Group, I would like to trigger a PostBack when the asp:LinkButton "addToCartButton" is clicked (see code below). I have declared a PostBack Trigger with the asp:UpdatePanel "updPnlProductsList" (see code below). <asp:Panel ID="pnlProductsList" runat="server" Visible="false"> <asp:UpdatePanel ID="updPnlProductsList" runat="server" U...

ASP .NET - CollapsiblePanelExtender does not work in IE7

I am running the ASP .NET AJAX Toolkit 3.5. I have setup a panel with a collapsablePanelExtender and it works in Firefox 3.5 but not in IE7! In IE7 all the "collapsed" panels never shrink - activating the button does nothing. My code: <asp:ImageButton ID="btnA" runat="server" ImageUrl="~/Image/expand.gif" /> <asp:Panel ID="pnlA" run...

Select DOM elements using ASP.net AJAX similarly to how Jquery does it

I'm trying to select a particular set of div elements and change their height properties to auto. The jquery code I use to do that at the moment is: $("div#TreeView1 td > div").css("height","auto"); Unfortunately I have to use the MS javascript lib (despite my protests). How can I do something similar using Microsoft's ASP.net AJAX? ...

converting an ajax control to a drop down

Situation--> there are two ajax controls used.... The first one acts as a prompter, that is, the person types say a letter l in the textbox, and the options starting with l are diplayed for the user to click and select. The second ajax control also acts a prompter, that is, when you type a letter l in the second textbox, it dis...

Startup Script Not Firing During Partial Refresh

I have a User Control, named MyUpdateControl, that fires a startup script - its HTML is simply: <div id="updatableArea"></div> The startup script is added in the User Control's OnLoad(): string doUpdateScript = String.Format( "DoUpdate('{0}')", someValue); this.Parent.Page.ClientScript.RegisterStartupScript(typeof(Page), "DoU...

How to Call an event when a specific item on CheckBoxList is clicked?

Hello guys, I've got a CheckBoxList, which is populated via .DataSource, getting some items from the database. Each one if this items got it's ID according to the ID on its database record. What I need is, when the user clicks item with ID 34, it shows him a panel/popup... I already have everything, the popup and all. Just don't know ...

ASP.NET AJAX: Creating a postback

I would like to cause a post back that occurs only once by inserting some AJAX into the page after a specific event occurs. Currently I have: string script = "<script language='Javascript'>" + "__doPostBack('GetSpreadsheet', '');" + "</script>"; Page.ClientScript.Regi...

Why does ASP ListBox take so long to render in AJAX update panel?

I have a problem when updating the source of an ASP ListBox in an AJAX update panel. When I set the source of the ListBox to a large dataset, I would assume it would take a small amount of time to render due to the number of items. However, when the DataSource is switched at run-time to a smaller set of items, it takes just as long to ...

ASP.NET 3.5: Refresh some values in a UserControl when some action is performed in another UserControl

OK, this is my situation; I have a MasterPage. On the left hand side is a UserControl for navigation. In this UserControl I have another UserControl which shows details for the current "active" selection. What I want to do; When a user selects, say, a Customer in the main content area I want to populate pertinent details in the Activ...

How to add event handler to AJAX Control Toolkit Extenders

I have been trying to add a toggle button using the ToggleButtonExtender and the MutuallyExclusiveCheckboxExtender. However, I cannot add an additional client side event handler for the click event of the Extender created button. I tried to add a BehaviorId that I access in the onLoad of the Javascript via the $find('') function. However...

asp.net mvc ajax.BeginForm Redirecting

I dont think i quite get the Ajax functions in mvc, because i get this wierd problem. I got the following code which makes my ajax call, it is placed in a partial view with a productList: <% using(Ajax.BeginForm("AddToBasket", "Basket", new { productID = item.Id }, ...