asp.net-ajax

Close a browser window of an ASP.NET and AJAX application

What is the best way to close a browser window of an AJAX ASP.NET application after the server-side has been executed. I found this solution, but it seems a little complex for what I want to accomplish. Or is this the best way to accomplish my task. UPDATE: I have to close the window after the button is pressed UPDATE 1: I tried the ...

What would make a callback request hang?

I am working on a project that uses the asp.net ajax control toolkit and all my callback requests are hanging till the request times out. When I step through the code all my code executes then the hanging occures. Right now I am looking for possible reasons why this might happen. ...

Why does the Update Panel deselect the current selection in a listbox when selecting another?

I have a asp:ListBox wrapped inside an asp:UpdatePanel. The list box contains all the United States. If I select Alaska, for example, and then scroll down to select Wyoming, the listbox jumps back up to the top of the list instead of staying on Wyoming and it deselects Alaska, but Wyoming remains selected. Has anyone ran into this bef...

Dynamically refreshing rows in an HTML table using an UpdatePanel

I have been using the ASP.NET AJAX UpdatePanel control a lot lately for some intranet apps I've been working on, and for the most part, I have been using it to dynamically refresh data or hide and show controls on a form based on the user's actions. There is one place where I have been having a bit of trouble, and I'm wondering if anyon...

Calling multiple __doPostBack from JavaScript

Hi, I've got multiple UpdatePanel's on a page and i'm updating 2 of them manually by calling __doPostBack. However the problem is the first call seems to be reset when the second call is made (it never updates the panel that i requested to update first). I've got these calls wrapped in setTimeout, but it does not seem to help. Any sugg...

ASP.NET VS2008 Ajax Problem

Hi Guys, I am using VS2008 Pro and the problem is the following. I need to add eg. <asp:ScriptManager ID="ScriptManager1" runat="server"/> <ajaxToolkit:FilteredTextBoxExtender ID="Filter1" runat="server" ValidChars="AEIOU" TargetControlID="TextBox1"></ajaxToolkit:FilteredTextBoxExtender> This problem is that <ajaxToolkit........ ar...

ASP.NET toolkit Accordion double click issue

I am using a accordion control which has nested gridviews within the content section and a series of buttons. When the page is first loaded, it requires 2 clicks before any button or linkbutton's events are fired. For the buttons I have hacked together a fix using external buttons which I invoke via javascript, however for the gridview...

Can I use UpdatePanel in MasterPage to wrap nested pages?

Can I use Update panel in masterpage to wrap nested pages so that when browsing from one page to the other client only gets a partial refresh (MasterPage doesn't get reloaded). If so - how? Do I Just put an update panel around the ContentPlaceholder in the Master Page? Any help appreciated! ...

How do I fix: InvalidOperationException upon Session timeout in Ajax WebService call

Hi All, We are invoking Asp.Net ajax web service from the client side. So the JavaScript functions have calls like: // The function to alter the server side state object and set the selected node for the case tree. function JSMethod(caseId, url) { Sample.XYZ.Method(param1, param2, OnMethodReturn); } function OnMethodReturn(re...

ASP.NET MVC & Ajax Control Toolkit

Hi, I'm trying to get my head around MVC + AJAX etc. One of the things I like about coding "old skool" (web forms) is the AJAX Control Toolkit. I saw on the Microsoft Storefront video 14, Rob Conery uses the TextboxWatermark control. When I downloaded the code though, I couldn't find any reference to the Watermark control or any othe...

Looking for a workaround for IE 6/7 "Unspecified Error" bug when accessing offsetParent; using ASP.NET AJAX and jQuery

I'm using jQuery UI's draggable and droppable libraries in a simple ASP.NET proof of concept application. This page uses the ASP.NET AJAX UpdatePanel to do partial page updates. The page allows a user to drop an item into a trashcan div, which will invoke a postback that deletes a record from the database, then rebinds the list (and othe...

Type and Sys not defined JavaScript error

I'm trying to follow a simple example of AJAX-enabled WCF Service like: http://www.pluralsight.com/community/blogs/fritz/archive/2008/01/31/50121.aspx I'm getting the JavaScript errors Type not defined and Sys not defined. Does this mean there is an issue with one of these .axd things? or something else? How do I troubleshoot what is wr...

Can an Ajax-enabled WCF Service pass back a DataTable as a Sys.Data.DataTable?

Can an Ajax-enabled WCF Service pass back a DataTable as a Sys.Data.DataTable? Like this but in WCF. My OperationContract looks like: [OperationContract] public DataTable GetEmployees() { NorthwindService ns = new NorthwindService(); return ns.GetEmployees(); } Through the Firefox error console I get t...

Best .NET Books covering ASP.NET 3.5 with ASP.NET AJAX

I'm looking for the best technical books that cover ASP.NET 3.5 with ASP.NET AJAX? Ones that gives the strongest examples of ASP.NET Ajax and exploring the client-side Sys.* objects. Also examples using the WCF-based webservices to handle Ajax requests. ...

Sys.ArgumentUndefinedException: Value cannot be undefined.

I am developing some ajax stuff on asp.net mvc framework beta. but,I got exception as following. Anyone has problem like me? Sys.ArgumentUndefinedException: Value cannot be undefined. and my source code is like this. <asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server"> <script src="../../Scripts/jquery-...

Asp.netAjax Parsing Error

Asp.net 2.0 webapplication with ajax showing the following exception when im requesting for a page first time ..after that its working fine "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.Wr...

Extending Forms Authentication Timeout When Making AJAX Calls With jQuery

I'm looking to rewrite a pretty intensive CRUD type ASP.NET page to utilize ajax calls (specifically jQuery ajax). My concern in doing this is that the user may be on this page longer than the forms authentication timeout. Because of this, I'm thinking that I should extend the forms authentication ticket with each ajax call (basically ...

How to post with update panel and re-rout its response data

I implemented a save-draft trick using an update panel whereby I handle the updatepanel's asynch postback on the server side and then to avoid resending the same html data I throw an exception with the current datetime as message and then capture it on the client side where i do some transformation and html injection to let the user kno...

why use not not !! for boolean value in MS AJAX?

From MS AJAX source code, Type.isClass = function Type$isClass(type) { /// <summary locid="M:J#Type.isClass" /> /// <param name="type" mayBeNull="true"></param> /// <returns type="Boolean"></returns> var e = Function._validateParams(arguments, [ {name: "type", mayBeNull: true} ]); if (e) throw e; if ((typeof(type) === 'undefined') |...

jQuery and ASP.NET AJAX

Can we combine both jQuery and ASP.NET AJAX in an ASP Web Application? ...