asp.net-ajax

ASP.NET MVC AJAX returning new page on simple call

I'm not sure what's wrong with the following setup. I have a View that lists a number of records, and each has a dropdown associated with it to change a value on that record. I had it all working without AJAX, but you had to change a bunch of the dropdowns then click a Submit button. I wanted to change it so that it would save the dropdo...

UpdatePanel and Labels

Hi, I have an update panel with some controls in it. for example, I have a label, a textbox and a button to postback. My label text is retrieved from the resource file, therefore, during page load I do the following Page_Load() { If(!isPostBack) { Label.Text = //Resource value; } } Problem is, after posting ...

AJAX behaving differently for Submit button vs. this.form.submit?

I'm trying to auto-save a selection in a dropdown (ASP.NET, MVC, VB), but it's not behaving as expected. Here's the dummy action in the controller: <AcceptVerbs(HttpVerbs.Post)> _ Function TestAction(ByVal id As Integer) As ActionResult Return Content(id) End Function and the HTML: <script type="text/javascript" src='<%= Url.Cont...

__eventtarget set to ScriptManager id

I have multiple UpdatePanels on a page, each filled by somewhat expensive controls. On async postbacks, all UpdatePanels are initialized, but only the updates UpdatePanel is sent to the client. Now I would like to initialize only the UpdatePanel that actually requires an update. http://ryanfarley.com/blog/archive/2005/03/11/1886.aspx s...

Is it possible to create asp.net web application like APE( Ajax Push Engine )?

APE, It's the best idea for 2 ways connections between client & server. I think I can create ajax push engine based on Asp.net like the following code. Server-side ( WCF or .Net Web Service ) public string SendRequest() { string data = Request["data"]; if(String.IsNullOrEmpty(data)) { // still connect to client unt...

ASP.NET server control wrapping GridView in a Panel linked to an AJAX Toolkit ResizableControlExtender - panel size does not initialise to the size of the grid

I am trying to create a resizable GridView wrapped up as a server control. I am using the ResizableControlExtender from the AJAX Control Kit, which as far as I know requires that the control that is to be resized must reside inside a panel the initial panel size must match the initial target control size. I can do this happ...

How to have a javascript callback executed after an update panel postback?

I'm using a jQuery tip plugin to show help tips when the user hovers certain elements of the page. I need to register the plugin events after the page is loaded using css selectors. The problem is I'm using an ASP.NET Update Panel and after the first postback, the tips stop working because the update panel replaces the page content but...

Abort Asynchronous Web Service Call and redirect to another URL (ASP.NET Ajax)

In my webapp, I have a list of links generated from code-behind and bound to a repeater control. Clicking on a link opens a popup window, where, along with displaying some data, an asynchronous call to a WCF Service is made (through a javascript proxy). This service in turn calls another third party web service that might take a long tim...

Ajax.BeginForm not hiding loading element when onBegin fails

I'm using the Ajax.BeginForm helper in my MVC app. Here's a simplified example: <% using (Ajax.BeginForm("actionName", new { Controller = "controller" }, new AjaxOptions { OnBegin = "doValidation", LoadingElementId = "ajaxLoader" })) { %> The problem is that if the OnBegin...

ASP.NET AJAX Component with child Component

I'm trying to create an AJAX component that contains a CollapsiblePanelExtender. Since the CPE is a child control of my control, the CPE's javascript $create statement is emitted after my component's $create statement. Thus, when the JS constructor for my component runs and tries to find the CPE, it can't find the CPE because it hasn't...

AJAX Toolkit Modal Popup won't appear

Hi, I'm having some trouble calling a modal popup from server side. So, I set the modalpopupextender's targetcontrolID to a hidden label. Then in the codebehind from a button's click, I try to add this.modalpopup.show(); Unfortunately, the modal popup doesn't appear when this happens. I can see the code get executed, but nothing sho...

Can a userControl event cause an update panel to refresh??

I have an aspx. <div id="headerRegion" class="borderDiv"> <xy:paymentHeader id="paymentHeader1" runat="server" /> </div> <div id="paymentRegion" class="borderDiv"> <asp:UpdatePanel ID="paymentFormUpdater" runat="server"> <ContentTemplate> <asp:PlaceHolder runat="server" ID="plcPaymentForm" /> </Cont...

Website but more like chat application behaviour

Hi I wanna make a website preferably using asp.net 3.5 in c#. In this web app, I need to push messages very frequently. (like if sender sends a message, it should immediately reflect to the receivers). So more like chat application but not bidirectional. My question is how can i refresh receivers webpage immediately? or How can i push m...

JSON Serialization

I am try to call my web service with ajax call but i am not get success to call web service with it please find below code Web Method Which i am trying to call using System; using System.Web; using System.Collections; using System.Web.Services; using System.Web.Services.Protocols; using System.Web.Script.Services; using System.Colle...

AJAX auto complete with options for selecting query type

I want to use the AutoCompleteExtender control but i want to use it with a drop down list or radio buttons that let me select the search type. i.e. search by name or search by ID. Now the search bar is on the master page while the content is on a 'contained page' (i'm not sure of the correct terminology). Currently (i'm modifying existin...

Ajax animation extender

I want a popup onclick that flies in animated. I'm using ajax and currently this is what I have: <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/images/bttnViewMini.gif" /> <asp:Panel ID="Panel3" runat="server"> //stuff </...

problem with paging my gridview

I have a gridview inside of a div that is displayed with ajax. I have the following. <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/images/icon_info.gif" /> <div id="moveMe" style="display:none"> <div style="float:right;"> ...

Asp.NET MVC AjaxOptions OnSuccess fires.. too early?

I'd like to use the OnSuccess option of AjaxOptions passed as Ajax.BeginForm argument to "do something" once the response is completely received and DOM updated. As far as I can undestand from MSDN, this is what this option do. In my application, OnSuccess script fires too early, immediately after the request is sent. I put to sleep the...

Setting Default Button in Ajaxified Wizard Control

I have a Wizard control on my ASP.NET web form. I am setting the default button on each step in the ApplicationWizard PreRender event in code-behind like so: Page.Form.DefaultButton = ApplicationWizard.FindControl("StepNavigationTemplateContainerID").FindControl("StepNextButton").UniqueID; This is working perfectly, but when I ajaxif...

How to use Sys.Services.AuthenticationService works and what could prevent it from working

Hi, My website uses Sys.Services.AuthenticationService in order to do an ajax style login. Right now it's contained within $(document).ready(function() { }); here's the very beginning of the javascript code... (You can read the full implementation here) alert("1"); var ssa = Sys.Services.AuthenticationService; alert("2"); The fir...