asp.net-ajax

How can I have an ascx postback and refresh itself automatically every X seconds?

I have an ascx control bound to a datasource with frequently changing data. Is there a quick way to have an ascx control postback, rebind and refresh itself every X seconds. The ascx control is in an update panel. ...

Sys.WebForms.PageRequestManagerParserErrorException

Hello, i am getting error **Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Details: Error parsing near 'Mailbox unavailab...

ASP.NET AJAX pageLoad() with multiple Updatepanels

Greetings, I'm working with some guys who are developing an app with Update Panels. I'd like to use the jQuery datepicker on a textfield that is part of a row that can be added multiple times via this update panel, and I've got the JavaScript below to work successfully: function pageLoad(sender, args) { if(args.get_isPartialLoad()) ...

access trigger button in updatepanel inside a loginview?

hi i am having problems with to define my trigger control in the ajax updatepanel. the button is inside a loginview now i wonder if this is possible to make the updatepanel to find that control somehow? tried to search but did not find any info on this ...

Telerik RadGrid always display X rows, even if there are only Y data rows on the last page where Y < X

I have a telerik rad grid with PageSize=10. The problem is if I have 34 items. On the last page, there will only be 4 rows. Is there a mode to force to control to render with 6 empty null rows or do I have to implement this myself by adding blank rows o my DataSource? ...

How do I use a jQuery $(document).ready and an ASP.NET UpdatePanel together?

I'm rocking this bit of Javascipt in the <head> section of my page: <script type="text/javascript"> $(document).ready(function() { $('dl.expander dd').expander ( { slicePoint: 50, widow: 2, expandEffect: 'show', userCollapseText: '[^]' } ); }); </script> This works great the first tim...

event / callback options in ASP.Net Ajax from server to client?

Hi everyone, I'm new to ASP.Net Ajax and wondered if the following was possible. I'm thinking of putting in an updatepanel in a page with an update progress bar in it. The idea is for a post from a button in the updatepanel to trigger a method call in the codebehind that calls a server component. I would, ideally, like for the server...

ASP.NET AJAX Toolkit Combobox need to press enter twice to postback

Hi, im using a ComboBox for a feature in my application, and i have AutoCompleteMode="Suggest". However, after i type the in the textbox for a search, and press Enter, nothing happens, i need to press Enter again to postback and show some results. Its kinda annoying and not intuitive to press Enter twice. Its really weird, because when...

ASP.NET AJAX Toolkit Combobox: avoid the need to click ENTER twice to postback

Hi, im using a ComboBox for a feature in my application, and i have AutoCompleteMode="Suggest". However, after i type in the textbox for a search, i need to press ENTER twice to postback and show some results. This is the default behavior, like its shown in the oficial demonstration. In my opinion, its kinda annoying and not intuitive.....

asp control not firing events, if a user control with updatePanel is in the page

Hi, I have a page with a user control which uses UpdatePanel, if I insert after this control an Asp:Button, the onClick event of the asp:Button is not fired. I tried to insert an Asp:HyperLink but the in line code to call a method (takeNavigateUrl()) returning a string is not called: <asp:HyperLink ID="AddOrg" Visible='<%# userH %>' Tex...

MVC Ajax - Parsing Form Submission Return Data

I am using MVC Ajax to do a form submission. What I can't get right is to get the Action on the server to return a partial view to the browser. The form submission looks like this: <% using (Ajax.BeginForm("Add", "Example", new AjaxOptions { HttpMethod = FormMethod.Post.ToString(), OnComplete = "widgetAdded" } )) { %> This hits the ...

Getting rid of Microsoft AJAX

We wrote a couple of controls using Microsoft AJAX (cs class + js class). Now I'm thinking about getting rid of it (just use jQuery), as it is bloated and we don't use UpdatePanel. My question is: how should I change my controls? Right now they implement IScriptControl, which uses Microsoft AJAX features (if I understand correctly, Scrip...

Error: [Exception... "Access to restricted URI denied" .... while calling $.ajax method

I am getting this error while calling $.ajax methods Error: [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "xxxxxx" Line: 19"] Source File: xxxxxxxxx Line: 19 I am passing URL paramter as http://www.xyz.com/myscriptfolder/myfile.js . The $.ajax method works well w...

How do I make a Textbox Postback on KeyUp?

I have a Textbox that changes the content of a dropdown in the OnTextChanged event. This event seems to fire when the textbox loses focus. How do I make this happen on the keypress or keyup event? Here is an example of my code <asp:TextBox ID="Code" runat="server" AutoPostBack="true" OnTextChanged="Code_TextChanged"> ...

how to set time in ajax slider control's maximam or minimum value properties? in asp.net

i want to set property of ajax slider control's maximum or minimum properties?? in this two properties ...it take only integer value but i want to give date value to that properties.. ajex toolbar is very new to use.. help to get out this.. ...

How to...Add Client Side function to button that postsback?

I have a button that closes a modal dialog box on an ASP.NET Ajax form. How do a add a client side function to be called on the same button click? currently firebug has this for the onclick javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$DefaultContent$btnPaymentActionDetailClose", "", true, "", "", false, f...

GetScriptReferences does not get called

I have written a Custom Control that contains the following: [assembly: System.Web.UI.WebResource("InSysControls.AssignmentLists.AssignmentLists.js", "text/javascript")] namespace InSysControls { [ToolboxData("<{0}:AssignmentLists ID='AssignmentListsID' runat=\"server\"> </{0}:AssignmentLists>"), ParseChildren(true, "Items")] pu...

ASP.NET AJAX Control Toolkit ModalPopupExtender + HTML + JavaScript

Hello, I have a section of HTML and JavaScript that represent a dialog. The code for this is something like the following: <table border='0' cellpadding='0' cellspacing='0'> <tr><td>My Dialog</td></tr> <tr><td> [Formula Here] </td></tr> </table> This dialog will open from a link click. Currently, I have the content of the d...

Update Panel and partial rendering and AsyncPostBackTriggers only firing the first time with AjaxControlToolkit:ComboBox

This should be a pretty simple thing to do with Update Panels, but I'm having troubles. I want to update the updatePanelSelectedVendors on vendorsComboBox selection change, when the gridview pages, and on the delete buttons in that panel. I don't want to refresh the vendor combox at all, but I don't want to do a full post back. The prob...

ASP.NET UpdatePanel Javascript Callback

I came across this issue recently and thought it was really helpful. My question was, how would you call a piece of javascript after an updatepanel loads via AJAX in ASP.NET? I needed to reinitialize a jQuery datepicker after the panel had loaded. ...