asp.net-ajax

Redirect the parent frame inside an UpdatePanel on PostBack

This is kind of a weird problem, but I have to create a search box for our site that will be iframed on another site. When the user clicks the search button, it needs to redirect the parent frame to our search results page. At the moment what I've done is to make the search button a postback trigger then registering a client script blo...

Call Web Services Using Ajax or Silverlight? Which performs best?

I'm building an ASP.NET AJAX application that uses JavaScript to call web services to get its data, and also uses Silverlights Isolated Storage to cache the data on the client machine. Ultimately once the data is downloaded it is passed to JavaScript which displays in on the page using the HTML DOM. What I'm trying to figure out is, doe...

Out of Memory - Infinite Loop - ASP.NET AJAX Framework

We're running on .NET 3.5 SP1. Recently, in IE, some of our users started getting "Out of Memory" errors once in a while. This doesn't happen all the time. I managed to replicate it a couple times and I found that this code, from the AjaxControlToolkit.Common.Common.js file, was causing an infinite loop: AjaxControlToolkit.TextBoxWrapp...

Conflict between Google util.js and ASP.NET AJAX?

I'm trying to use Google's jstemplate as a client-side templating engine on an ASP.NET page, and it seems to be conflicting with ASP.NET AJAX. The problem is not jstemplate.js but util.js, which it needs as a support file. I've isolated the problem as follows:: <%@ Page Language="VB" %> <body> <form id="form1" runat="server"> ...

Call Javascript function and return value from ASP .NET

Lets say on my page I have this function: function ReturnFoo(bar) { return bar.toString() + "foo"; } Now, I would like to have this called from ASP .NET, hopefully with the ASP .NET AJAX framework, as I am already using it in this codebase (I have already spent the 100k, might as well use it). Also, I would like to get back the...

Visual Studio 2008 Design Surface Error: "The operation could not be completed. Invalid formatetc structure."

In a VS2008 web site project, I have a page open in split view. I try to drag an Infragistics web control onto the page's design surface. Nothing happens. I try to drag same onto the htmlz. Dialog box with The operation could not be completed. Invalid formatetc structure. Subsequently the dragged control does not appear in the de...

Losing Button.Click events after first partial postback in UpdatePanel

I have a Page that has a single instance of a UserControl that itself has a single UpdatePanel. Inside the UpdatePanel are several Button controls. The Click event for these controls are wired up in the code-behind, in the Init event of the UserControl. I get the Click event for the first button I push, every time, no problem. After ...

What is the best practice to use ExtJS with Asp.net and WCF in .NET 3.5?

How do you save data from ExtJS form? Load data from the business layer into form or grid? ...

Transitioning from WinForms to AJAX, what do I need to know?

I currently have a functioning in-house Windows Forms application which extensively uses the DataGridView control for data entry. There are some support issues which are expected when we roll this out to more locations, so one of our consultants has recommended putting together an AJAX application with substantially the same functionalit...

Can I add ASP.NET AJAX Extentions to a page programmatically (server side)?

In a page, on the load event, I am dynamically creating controls for display on the page. This is all working properly. the trouble I am having is when adding extenders from the AJAX control toolkit, specifically I am trying to add rounded corners to a button control. No errors are thrown, but the AJAX Extension functionality does not ap...

Random Page_Load calls on back button in ASP.NET

Hey all, I'm hoping someone has seen this before because I can't for the life of me find the problem. I'm trying to do the old "fix the back button" thing in an application and I think i have a pretty decent approach, the problem is that it relies on the application not calling page_load when you hit back and instead loading the cach...

Ajax and GridView-Fu -- how to make AccordionPanes work with GridViews?

Ok, I know someone here has tried this ninja-elite level of coding before. Essentially what I want to do is this: I want a GridView where each row returned becomes the header portion of an asp.net-ajax AccordionPane. Each row also has some unique key, and when you click on each of those AcccordionPane headers, that will in turn reveal t...

Why is my asp:TreeView selected node reset when in an UpdatePanel?

I have an asp.net 2.0 page that contains 2 UpdatePanels. The first panel contains a TreeView control, when I select a node in the three view control it triggers an update of the second UpdatePanel only. This much is behaving correctly. There are two buttons on the page outside of an update panel (previous/next). These buttons trigger a...

ASP.Net AJAX uses syntax like $get('myId'), is this standard Javascript or JQuery?

It doesn't look like basic javascript but nor can I use JQuery commands like $('myId'). Is this or similar functions documented anywhere? For reason I don't want to go into, I am not able to use 3rd party libraries like JQuery but if some powerful javascript extensions come with asp then I would like to know about them. ...

How can I execute javascript from the server when using asp:UpdatePanels?

I used to do the following to execute javascript from the server: Page.ClientScript.RegisterStartupScript( ... ); And it would execute when the page loads back at the client. I am now modifing existing pages to use UpdatePanels and my javascript is no longer being fired. ...

.NET AJAX 1.0 Aysc Callback Modifies Form Action When Server.Transfer is Used

I have a web form that I am attempting to implement dynamic drop down lists on using the .NET AJAX 1.0 extensions. I have successfully implemented the needed bits, but have an interesting quirk. When I select a value from my first drop down list, my call back happens and my page is updated correctly. The next value I select, I receive t...

Programmatically Adding User Controls Inside An UpdatePanel

I'm having trouble dynamically adding controls inside an update panel with partial postbacks. I've read many articles on dynamic controls and I understand how to add and maintain them with postbacks but most of that information doesn't apply and won't work for partial postbacks. I can't find any useful information about adding and mainta...

Asp.net tree view

Hi All I have placed the TreeView in the update panel and HoverNodeStyle-Font-Underline="true" when ever mouse hover underline will be shown.But after post back there is no underline when mouse over Any one help me please Thanks Sekar ...

Asp.net Page Management

When you open a page in the browser, an instance of the page is created on the server. But, when you use AJAX, does anyone know if the entire page object is created at the server on postbacks? ...

How to do page initialization functions in ASP.NET AJAX?

Quick question: There seem to be a number of weird things one could do if one wanted, for hooking up page-load type events. Here are some specific questions: I know about the auto-hooked-up pageLoad function. Are there any others like it? Where do I hook up events like those from, e.g., Sys.Application.add_init or Sys.WebForms.PageReq...