asp.net-ajax

Sharepoint People Editor within Update Panel - Cannot set value after partial postback

trying to set default value in the people picker with an update panel. On a test page without an update panel, the code PeopleEditor1.CommaSeparatedAccounts = "domain\\user.account"; works just fine. As soon as I add an update panel around that people editor the picker's text area gets cleared out and future calls to the above snippet...

Control JSON Serialization format of a custom type in .NET

I have a PhoneNumber class that stores a normalized string, and I've defined implicit operators for string <-> Phone to simplify treatment of the PhoneNumber as a string. I've also overridden the ToString() method to always return the cleaned version of the number (no hyphens or parentheses or spaces). In any views where I display the nu...

Comet, Ajax Push, Reverse Ajax

Hi Guys. Someone have any sample of Comet app .net? I need one sample how to persist connection of client in server? ...

Timer causes dropdownlists to disappear permanently after a modal popup

On a fairly complex page, we're getting some unusual behavior with dropdownlists in IE6. To layout the basic structure, there are 2 update panels on the page each with a gridview presenting a master-details layout. In addition to the grid, each panel houses some dropdownlists for filtering the data in the respective gridview. Now what...

Calling Page Methods of UserControl/Page using MSAJax

Hi all, Is it possible to call usercontrol methods/events using MSAJAX. I wanted to update my usercontrol by calling one of its events when a property from its parent page changes. Thanks ...

How can I pass parameters to the OnSuccess function of the AjaxOptions class in ASP.NET MVC?

How can I pass parameters to the OnSuccess function of the AjaxOptions class in ASP.NET MVC? Here's my code but it doesn't work: <%= Ajax.ActionLink("Delete", "Delete", "MyController", New With {.id = record.ID}, New AjaxOptions With ...

ASP.NET Show/Hide Sections in a Datagrid row.

Hi All, I have a datagrid where each row has information on Employees in a company. I would like to allow each row the ability to show/hide extra information. My first idea was use the CollapsiblePanelExtender from the AJAX toolkit and have each row like this: <ajaxtoolkit:collapsiblepanelextender TargetControlID="panel2"> Ex...

Can I retrieve data from server to client during an asynchronous post-back using ASP.NET Ajax Library?

ASP.NET Ajax Library provides some client-side events. For instance: Sys.Application.add_load( function(args) { // handle the end of any asynchronous post-back. Every-time there's // a server round-trip, this method will be called. } ); During the asynchronous post-back I want to retrieve information to the cli...

ASP.NET AsyncPostBackTrigger disables button's OnClick function???

I saw another post like this: http://stackoverflow.com/questions/1795621/asyncpostbacktrigger-disables-buttons But I don't really know what to make of it. The accepted answer was poorly typed. Basically, I have a button with an OnClick function. I also have a UpdatePanel, with is AsyncPostBackTrigger set to that same button. It seems t...

Passing Control's Value to Modal Popup

Hello, Just would like know how to pass textbox value to a modal popup after clicking a button using ModalPopUpExtender in ASP.NET, I've tried these codes but seems that I have no luck :( <script runat="server"> protected void Page_Load(object sender, EventArgs e) { Button1.Attributes.Add("onclick", "showModalPopup();...

Ajaxcontrolkit calendar control - customisation

hi, Can the calendar control be customsised so that, say you have a system of renting out a holiday home. can the dates that have been booked appear as red and disabled on the ajaxcalendar control? Cheers -- Jonesy ...

Asp.net ajax event bind to two functions

hey Guys, I wanted to know if there's a way I can bind an Asp.net Ajax event to two different JS functions ? eg. var prm = Sys.WebForms.PageRequestManager.getInstance(); if (!prm.get_isInAsyncPostBack()) { prm.add_initializeRequest(InitializeRequest); prm.add_initializeRequest(InitializeRequest2); } function Inital...

Why is the form action attribute empty on production server?

After deploying a ASP.NET WebForms application to a production server some of the ajax calls has stopped working for me. After some debugging I found out that the following statement (in the internal client-method WebForm_DoCallback) was causing the problem: xmlRequest.open("POST", action, true); The problem seemed to be that the acti...

multipleview inside update panel

hi.......... i have create a two views inside multiview and also put two radio buttons above the multiview. now check changed on radio button according to view is display. now i want to use update panel in this page because at the time of check changed hall page is load.... how to put update panel on radio button....??? plz help me o...

Does AjaxControlToolkit ToolkitScriptManager cache combined js on client?

Usual javascript files can be cached on a client-side if web server sets the expiration. If user has once downloaded it, it will be cached by his browser. And what about AjaxControlToolkit ToolkitScriptManager? Are combined JS files cached on a client? How can expiration time be managed? ...

ASp.Net Ajax page in an IFRame

Can you put an Asp.Net Ajax page running on Server2 inside an IFrame running on Server 1 and still have the AJax work ...

ASP.NET Ajax and PageName.aspx#&&/p4oipopi456poi456poi4poi (Some Hash code)

Hello, I am working on a complex CMS which I have not written myself, which uses ASP.NET Ajax. It seems that starting with ASP.NET 3.5 SP 1, the ScriptManager control in the ASP.NET AJAX Framework includes functionality for creating history points in an AJAX-enabled web page. This creates a string at the end of the URL, used for this i...

Masked Edit Extender Format Issue

I am using an ASP.NET AJAX Masked Edit Extender to format phone numbers <asp:TextBox ID="tbPhoneNumber" runat="server" /> <ajaxToolkit:MaskedEditExtender TargetControlID="tbPhoneNumber" Mask="(999)999-9999" MaskType="Number" InputDirection="LeftToRight" ClearMaskOnLostFocus="false" ClearTextOnInvalid="false" runat="server" AutoComplet...

How do you implement a combobox filter using AJAX in ASP.NET?

To save some time on discussing my problem you could check the demo below: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/filteringcombo/defaultcs.aspx I already checked the ListBoxExtender on the Ajax Control Toolkit but it wouldn't give me fine results. What I want to do is to filter a listbox which is populate...

Realtime progress of AJAX call (asp.net)

Hi... I'm trying to make a progress bar that updates the user on the progress of the AJAX call. My immediate thinking was that I need an AJAX call to start a thread on the server, allowing the starting AJAX call to finish, and allowing the thread to send updates back to the user. For the purpose of simplicity, disregard the actual pro...