asp.net-ajax

jQuery Events on Elements in an UpdatePanel

I have some elements inside an UpdatePanel which may or may be displayed, depending on various conditions. <asp:UpdatePanel ID="MyUpdatePanel" runat="server"> <ContentTemplate> <asp:Panel ID="MyPanel" runat="server"> <img id="clickableImage" src="/path/to/image.png" alt="Clickable Image" /> <span id="...

How to call C# Rest Web service from javascript.

I have created a rest architecture based web service in C# which will return a json string.I want to access this web service from the javascript How i can call this webservice from javascript. ...

datetime picker for ASP.NET 3.5 webforms

Is there a free for commercial use date and time picker in ASP.NET webforms? Right now I am using the AJAX calender extender with Visual studio 2008, but have nothing for time picker. I want a control that is free and has no license to it. I know that there are JavaScript controls but was wanting to stick with ASP.NET webforms controls...

jQueryUI dialog button submit form not working

Hi All, I am using ASP.NET Ajax and jQuery. I currently have a formView control that has a submit button on it. It triggers updates on the update panel it is contained within. Currently I have a client side function that returns a confirm(msg), if this is false the form is not submitted, else it submits and the updates are properly trigg...

ASP.NET MVC how is best to use Antiforgery Token

I have a page where the user has his list of messages, he has the possibility to delete these messages. Erasing of the messages is done via ajax: $.post("/Message/Delete", { id: 1, antiforgery: 765764565454 }); How it would be more correct to do this: To have in page the antiforgery token and to add as parameter in each delete post ...

When running a resize (javascript) function it won't allow my AJAX functions to run

Any idea why this would have an effect? Sorry I can't give the other code as it is private and non shareable :( Any tips would be appreciated. <body onresize="resizeWindow()" onload="resizeWindow()"> Content deedeedum.AJAX function to get data and display every 2sec. </body> <script type="javascript/text> /**** Page Res...

DropDownList in ModalPopup/UpdatePanel intermittently does not fire SelectedIndexChanged

I've got a UserControl that's used inside of an UpdatePanel. The UserControl is a fairly simple form that appears via a ModalPopupExtender (which is also part of the UserControl). There are four DropDownLists, as well as some other UI elements. Three of the four DropDownLists have AutoPostBack="true", with SelectedIndexChanged events ...

Pass data from a ASP.NET page to ASCX user controls loaded dynamically.

Hello. I'm developing an ASP.NET application with C# and Ajax. I have a page that holds user controls loaded dynamically. I need to pass some data (integer values and some strings) to the user control that has been loaded dynamically. Now I use Session to pass these values, but I think I can use another way; something like VIEWSTATE o...

Does an AJAX PostBack reset the session timeout?

I know that if I do a full post back to the server through a button click or other server control, that the internal session timeout is reset. However, if I have a button that is wrapped within an UpdatePanel, or another piece of code wrapped within an AJAX post back to the server, will the internal session timeout be reset as well? ...

JQuery Plugins Not Working Correctly With ASP.NET AJAX's ScriptManager

I am trying to use a jQuery plugin in a control. The pages that the control can be on use partial postbacks via an UpdatePanel. I include jQuery and the plugin during the control's PreRender event like this: ScriptManager.RegisterClientScriptInclude( this, this.GetType(), "jquery", "/_infrastructure/javascript/jquery.js"...

setInterval stops after Ajax request

I'm using Asp.net MVC and I want my partial view to refresh on an interval, which it does until I make an unrelated Ajax request, then it stops. Here are a few simplified snips to illustrate the problem. in AjaxRefresh.js: function ajaxRefresh() { var f = $("#AjaxForm"); $("#AjaxLoading").show(); $.post(f.attr("action"), f...

Modal popups for ListView items

Hi, I'm using ASP.NET AJAX Control Toolbox in ASP.NET 3.5 webform app; for each item inside a ListView I create a modal popup - through a modal popup extender - containing an image. Is this efficient? I guess that creating multiple popups in the background, just to show some of them is somewhat costly. Inside each popup I use some data...

webservice return bool, using ajax.

I got a jQuery prompt that is a password validation. I use a ajax webservice for this task. now my confusion is how should I handle the ajax call and make function bool? I started with ajax and webservices about a 2 hours ago so be nice. $(document).ready(function() { $("#sayHelloButton").click(function() { jPro...

Modal popup shown at the bottom of the page

Hi all, I'm using asp.net ajax, with modal popup extender in a web page. The popup appears fine in Firefox and Google Chrome, but it shown at the bottom of the page in IE8. I tried to control the appearance through JavaScript: var Image1_ModalPopupExtender = $find("Image1_ModalPopupExtender"); Image1_ModalPopupExtender.set_X(100); Imag...

Get ASPNET Control Value Using jQuery and Update Panel

I have an asp.net button and an asp.net label in an update panel and when I click the button it updates the text of the label in the code behind. However when I try to get the updated value it just returns an empty value. How do I get the updated value after the asynchronous postback has completed. I have included my code below. Many ...

Potential problems in setting AsyncPostBackTimeout to large value (300s)?

Are there any reasons to not set the ScriptManager.AsyncPostBackTimeout to a (comparitively) large value like 5 minutes? I have a report that takes anywhere from 30 to 180 seconds to run, which causes a Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out. error. In all my searching I can't find a downside of...

problem with MaskedEditValidator in ASP.NET AJAX

I have text box to enter a phone number. I'm using AJAX MaskedEditExtender and MaskedEditValidator to validate the phone. I have no problem with mask but the problem nothing happen when I enter for example only 3 number then lose the focus but as soon the focus on I will see the error message and it will disappear as soon as I write one...

Programatically adding an asp.net ajax DragPanelExtender

Hi, I get the following error when I try to add an ajax DragPanelExtender programatically. The TargetControlID of '' is not valid. A control with ID 'ajaxPanel' could not be found. Here's my code:- public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } pr...

Hiding Modal popup extender from client side.

Hi I need to hide the modal popup on client using javascript. if i use $find('ModalPopupExtender1').hide(); for hiding it is throwing an error saying 'null' is null or not an object' its urgent, can any body help me out of this prblem. thanking you. ...

Buttom event on AJAX modal PopUpExtender

work on Asp.Net vs08.i write the bellow code under the button event ,it's work fine on VS05 but it's not work on VS08.Help me to work on 08.I don't get any Show() method on 08.with out this How to always show popupExtender . ModalPopupExtender’d ID.show() ...