asp.net-ajax

ASP/AJAX - How to get the time between an server request and response?

Whenver Ajax requests new data from the server this can sometimes take a a second or two. Now I want to know, how can I get this time between the ajax request and the response it gets from the server? I need this because an ajax timer I'm running ain't perfectly doing his stuff. It got some delay whenever it needs to reset to it's origi...

ajaxtoolkit smart tag not showing up

I have been trying to solve this issue for a while, but no solution till now. I try to reinstall it but still , the smart tag are not showing up and when I right click it, it is grayed out. Anyone, with a solution to solve this issue. I am using asp.net 3.5, visual studio 2008 Thanks ...

autopostback for dropdownlist in mvc.net

how to set autopostback for dropdownlist in mvc.net? ...

JavaScript keeps returning ambigious error (in ASP.NET MVC 2.0)

this is my function (with other lines ive tried/abandoned)... function DoClicked(eNumber) { //obj.style = 'bgcolor: maroon'; var eid = 'cat' + eNumber; //$get(obj).style.backgroundColor = 'maroon'; //var nObj = $get(obj); var nObj = document.getElementById(eid) //alert(nObj.getAttribute("style")); nObj.style...

resize ModalPopupExtender

after showing the ModalPopupExtender, there are two radio buttons that are displayed as part of the popup. When you select the second radio button, I display more information in a gridview control. When the ModalPopupExtender first displays, I have it set at 40% for width and height for the panel associated with the popup. After click...

Json problem with Page Method call on IE 8.

I have the following code that populates a select element with values from an ajax call, via a Page Method. In FF, the code works perfectly, in IE8 I get the error: 'ResourceList[...].id' is null or not an object. What can I look at here? function readShift(jsonString) { var shiftInfo = Sys.Serialization.JavaScriptSerializ...

How to stop AjaxToolkit AsyncFileUpload tabbing order from stopping on filepath text box.

I have an ASPX page with an AsyncFileUpload control from the AJAX Control Toolkit, but when I try to tab through the tab order, the tab will not allow a tab past the filepath textbox (part of the AsyncFileUpload control). This control is contained within an update panel (if that matters in this implementation). How can I continue on in...

What's the Microsoft Ajax equivalent to jquery.ajaxSetup() or .ajaxError()?

I have an ASP.NET MVC site that uses both Microsoft Ajax [Ajax.BeginForm()] and jQuery to make asynchronous requests. I want to configure both frameworks such that a generic error handler is automatically attached if the developer does not explicitly specify a failure callback. In jQuery I can accomplish this with either .ajaxSetup() or...

Pass values from MasterPage UserControl to child ASPX Page

Hi, Senario: Masterpage with a UserControl and a child ASPX page In the past when using this senario I've used an Interface as a way to pass a value from the UserControl (embedded in a master page) to the masterpage code behind then consume that value in the child aspx page. My question is now that asp.net 4 have arrived is this still...

ASP .NET: Cannot call Page WebMethod using jQuery

I created a WebMethod in the code-behind file of my page as such: [System.Web.Services.WebMethod()] public static string Test() { return "TEST"; } I created the following HTML page to test it out: <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"/&gt;&lt;/script...

Declare Ajax-webservicecall OnSuccess method anonymous.

I write a lot of ajax javascript code and have a little design problem which I'm not totally satisfied with. A lot of times I end up with writing something like this: var typeOfPopup; function RetrievePopupContent(_typeOfPopup) { switch (_typeOfPopup) { case Popup1: WebService.RetrievePopup1Content(param1, param2, DisplayPopu...

ASP.NET/AJAX - Web user control update panel triggering from outside

Hi, I've got an web user control with an updatepanel. On my mainpage I got like 3 of those controls. Now I want to have an timer in the mainpage which would trigger the updatepanels in the web user controls. How can I manage this? Thanks in advance. ...

Problem with LinkButton and AnimationExtender

Hi. I have LinkButton and AnimationExtender for it. Also sometimes I need to disable LinkButton via JavaScript. I have my own function (because of problems with disabling LinkButton in FF). function disableAnchor(obj, disable) { if (disable) { var href = obj.getAttribute("href"); if (href && href !...

ajax code error in aspx page

where do i put the code in aspx page if i want to display hover menu,,if i put anywhere in aspx page its throwing errors the code is <ajaxToolkit:HoverMenuExtender ID="hme2" runat="Server" TargetControlID="GridView1" PopupControlID="PopupMenu" HoverCssClass="popupHover" PopupPosition="Left" OffsetX="0" Offse...

Where Are the Release Versions of ASP.Net AJAX 4.0 Templating Files?

I'm trying to get the release version of ASP.Net AJAX 4.0 Templating working and can't find the JavaScript files. With the beta version I needed to reference MicrosoftAjaxTemplates.js, MicrosoftAjaxAdoNet.js, and MicrosoftAjaxDataContext.js. I can get everything to work with the beta CDN versions (e.g. http://ajax.microsoft.com/ajax/...

Sys.WebForms.PageRequestManagerParserErrorException in IE6

I have a problem with UpdatePanels and IE6. ( Sys.WebForms.PageRequestManagerParserErrorException ) The version of .NET is 2.0. The strange thing is that if i open Fiddler to capture the requests, IE6 starts working ok!.. If i close Fiddler, then IE6 starts to report the problem. The problem is that i can't see the request because wh...

.getScript getting the redirect url of javascript

I d like to execute a remote javascript which redirects the user to another page on my domain with data that s passes as query string. I want to get this data which is passed on to the page on my domain. $.getScript('http://site.com/foo.js', function() { //foo.js redirects to another page on my domain with data ...

ASP.Net AJAX - IE 6/7 Memory Usage?

Hi, We're carrying out testing of our ASP.Net AJAX application, and are finding memory usage in Internet Explorer 6 & 7 increases by at least 2mb for each page refresh - whether refreshing the same page or navigating to a new one. This happens on the most basic of maintenance screens, and even on the main page where we've only got the ...

UpdatePanel on masterpage does postback on first button click

I have an update panel on a masterpage and for reasons unbeknown to me our content placeholder is within the updatepanel. But when I click on a button on one of our pages that uses the masterpage the page postsback. If I then click the button for a second time it does not postback and does an ajax call. Im wondering why it does a postbac...

ModalPopup inside the UpdatePanel with default form values

I have a ModalPopupExtender inside an UpdatePanel which opens an input form. The problem is when I click the "Edit" button (which is also inside the UpdatePanel) I want to fill the form with existing values using server side code. But it OnClick method of the button doesn't seem to work. My question is: How can I make the serverside cod...