asp.net-ajax

ASP.NET Ajax: 'PageMethods is undefined' script error on production server (works on localhost)

In a javascript file I'm calling an ASP.NET Ajax PageMethod (ASP.NET 3.5), correctly defined in the page class a static method using the WebMethod attribute. This works on my development machine, but on the production server the PageMethod object is undefined when my javascript function is called (clicking a button). Some debugging info...

Populating drop down list from another thread in ASP.NET

Hi, I have multiple drop down lists on a page. They all contain list of countries. So in the background I am getting countries from database and caching them. I would like to populate those drop down lists from another thread. I am also using AJAX controls so I wanted that it all happens at the same time. And also after a user selects a ...

where is the Sys.WebForms namespace?

I see it in the solution I am looking for, but if I try to use it I get: CS0103: The name 'Sys' does not exist in the current context I have VS 2008 SP1 installed, I am probably missing something that is pretty obvious? ...

jQuery tablesorter extension problem with multiple clicks?

Ok, I have a table, made by a GridView, and attached a tablesorter to it, it works just fine. Then I put it inside an updatepanel, and added the code to rebind it on a postback, here is my script: function loadEvents() { $("table[id$='gv']").tablesorter(); } $(document).ready(function() { loadEvents(); }); function reBind() { if (S...

Working with VS2008/3.5 ASP AJAX site on a 2.0sp1/AJAX Extesnion 1.0 server????

I am currently developing in 3.5 (building to 3.5 as I am using LINQ) and deploying my code to a 2.0 server. I have been successful in this so far, but now I am trying to utilize some of the ASP AJAX tools and I am running into an error I can't seem to get around. First I received "Unknown server tag 'asp:ScriptManager'." To whi...

The base class includes the field 'ScriptManager1', but its type (System.Web.UI.ScriptManager) is not compatible with the type of control (System.Web.UI.ScriptManager).

"The base class includes the field 'ScriptManager1', but its type (System.Web.UI.ScriptManager) is not compatible with the type of control (System.Web.UI.ScriptManager)." Anyone else come across this error? ...

ASP.Net: Why aren't the changes I make to Viewstate in a control event available to subsequent postbacks?

I'm writing a custom control in ASP.Net 3.5 WebForms, using ASP.Net AJAX. I'm building a state toggle into the control (expanded and collapsed modes). I've been trying to keep the current state of the control in ViewState, changing it in a server-side event handler manually: object oExpanded = ViewState[ "Expandedness" ]; if(oExpanded =...

ASP.NET: Button Outside UpdatePanel Fails to PostBack

I have a donation form that contains an update panel that contains a dropdown for predetermined amounts plus the "Other" option". When "Other" is selected the dropdown has triggered the partial postback and renders the update panel with the additional "Other" textbox for the amount. Outside this update panel I have a additional server ...

What is the best way to load ASP.Net usercontrols via JSON?

What is the best way to emit an asp.net usercontrol back to the browser based on a JSON request? So far I have a web service which creates the user control and sends it back to the browser. However when I post back the whole page, I get an error about "the state information is invalid for this page and might be corrupted." Considering...

ModalPopupExtender: How do I retain my position after dragging and firing a post back?

I've already tried Google searching for this and looking at the source for this control, but didn't find the answer. If I was able to link into a drag event I would be able to solver this, but I don't think it exists (see this link for a solution with a DragDropPanel (http://www.dotnetcurry.com/ShowArticle.aspx?ID=181). How can I do this...

What's the different between ASP.NET AJAX pageLoad() and JavaScript window.onload?

I'm working with ASP.NET AJAX and want to understand the difference between these two snippets: function pageLoad(sender, eventArgs) { } and window.onload = function() { } Do they act the same? Or is one called before the other? Or will one be called automatically and the another not? ...

Install order: Sharepoint ajax and .NET 3.5 ajax

As far as I know Sharepoint 2007 uses ASP.NET Ajax 1.0 with System.Web.Extensions 1.0 while I'm creating webparts with VS2008 SP1 and .NET 3.5 SP1 which includes System.Web.Extensions 3.5. So what is the order of installation and how do you install to get both versions working? ...

use global.asax to trigger event on master.page to show application errors

i would like to use my AJAX-enabled VB web application's gloabal.asax application_error sub to manage all my error handling. However, instead of just sending the user to an error page, i would like to show the error message to the user via a modalpopupextender control located inside the site's master.page. Can someone please explain in d...

PageMethod no longer gets called after adding UpdatePanel to a page

I am using asp.net ajax version 1.0 on asp.net 2.0. (I cannot yet upgrade to 3.5) I had a PageMethod that would get called by Javascript. This worked perfectly until I added an UpdatePanel to another part of the page. Now when I run the page with debug turned on The breakpoint in the pagemethod never gets called. when I look in firebug ...

ASP.NET AJAX 3.5 and IE6?

I recently upgraded an ASP.NET app to .NET 3.5 and switched to the newer version of the ASP.NET AJAX library. In FireFox and IE7, everything works great, in IE6, anything that would perform a callback (Partial Refresh, or calling a PageMethod/WebMethod) throws an error: Object Doesn't support this property or method Line: 5175 Char: 9 ...

ASP.NET AJAX 4.0 Tutorials

I am new to ASP.NET AJAX. Can anybody tell me good resource for the same? I have googled but was unable to find good tutorials to learn basic and advanced use of ASP.NET AJAX 4.0. ...

Reset scroll position after Async postback - ASP.NET

What is the best way to reset the scroll position to the top of page after the an asynchronous postback? The asynchronous postback is initiated from a ASP.NET GridView CommandField column and the ASP.NET update panel Update method is called in the GridView OnRowCommand. My current application is an ASP.NET 3.5 web site. EDIT: I ha...

Why does the Update Panel do a full post back for custom control?

I have a rather complex custom control - the custom control has a couple of update panels in it. I am trying to use the control like this inside of an update panel: <asp:UpdatePanel ID="up1" runat="server"> <ContentTemplate> <asp:Button ID="btn1" runat="server" Text="Sample Button" />&nbsp;&nbsp;<asp:Label ID="lblTime" run...

Parse Error while using ScriptManager

I have a web application that was working fine two days before. When I moved this web site to another machine, then facing following problem. In my web page, I have declared ScriptManager as: <asp:ScriptManager ID="scriptMgr" runat="server"> </asp:ScriptManager> And when I visit the web page, I am getting this error: The base class ...

asp.net ajax calendar extender (in updatepanel) causes wrapping

Here's a simplified version of my page: <asp:UpdatePanel runat="server" ID="dateUpdatePanel" RenderMode="Inline"> <ContentTemplate> <asp:Label runat="server" ID="lblDateFrom" Text="From:" /> <asp:TextBox runat="server" ID="txtDateFrom" /> <asp:ImageButton runat="server" ID="cmdDateFrom" ImageUrl="~/images/calendar.jpeg" />...