asp.net-ajax

How best to "turn off" a web page from another part of the application?

We have a web application that manages inventory for our computer support group. One of the things that we will be using this for is to drive a "Computers Currently In Use" map for our larger computer labs so that users can find an open computer more easily (the lab in our Main library has around 150 computers). The image used for the ...

How do I get a button that is inside an asp:UpdatePanel to update the whole page?

I have a button inside an update panel that I would like to update the whole page. I have set ChildrenAsTriggers="false" and UpdateMode="Conditional". I have some sample code here that demonstrates my problem. <asp:UpdatePanel ID="myFirstPanel" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional"> <ContentTemplate> ...

How do I force ASP.NET Ajax to use a script from the FS and not WebResource.axd, or to reduce its HTTP requests?

Here is a hum-dinger of a problem that I have not found an answer for. I am using the ASP.NET ajax control toolkit controls on a few pages, which by nature want to load script resources via WebResource.axd. This is all well and good for some applications, but each call to WebResource.axd requires an HTTP request. Most pages will pull a...

ASP.NET Tab Controls

I'm currently attempting to create a tabbed interface in a web application, and based on my search, there aren't any 'built in' tab controls in ASP.NET. There are some in the ASP.NET AJAX downloadable toolkit, as well as a wealth of 'pay for use' third party Tab Controls. My question is: What Tab control have you used for ASP.NET appl...

asp.net page methods returning undefined

I am trying to use page methods in my asp.net page. I have enable page methods set to true on the script manager, the webmethod attribute defined on the method, the function is public static string, I know the function works because when I run it from my code behind it generates the expected result, but when I call it via page method in...

ASP.NET AJAX: How to get a client instance created with the $create method?

Hi, Using the client-side ASP.NET AJAX library, I have created an instance of a client component with the $create shortcut-method (http://msdn.microsoft.com/da-dk/library/bb397487(en-us).aspx). The object is attached to a DOM element. Now I need to get a reference to the instance, but it is neither registered on window or on the DOM ele...

How can I get an UpdatePanel to intercept a CompositeControl's DropDownList

I have a CompositeControl that contains a DropDownList. I have set the AutoPostBack property of the DropDownList to true. On the page, I have: <asp:UpdatePanel ID="UpdatePanel" runat="server"> <ContentTemplate> <MyControl:Control ID="CustomControl" runat="server" /> </ContentTemplate> </asp:UpdatePanel> I've also tri...

ASP.NET MVC controller actions that return JSON or partial html

I am trying to create controller actions which will return either JSON or partial html depending upon a parameter. What is the best way to get the result returned to an MVC page asynchronously? ...

Does JSON.js cause conflicts with Sys.Serialization.JavaScriptSerializer.serialize

I am using Telerik controls in my webforms and want to serialize object on the client. Since I am getting a stackoverflow error with Sys.Serialization.JavaScriptSerializer.deserialize I wanted to try JSON. With both JSON and and the MS library I get "Sys.Application is undefined." Has anyone encountered this what did you do as a work ...

looking at client controls on the server

I'm just starting out with the whole ajax thing and I need some help. I have a form where the users will have the ability to add multiple e-mail addresses to a record. When the user clicks add a new e-mail address, I am going to perform an ajax call that will insert the email address and then get the current e-mails to be displayed for...

Can you do ajax without using ASP.net ajax toolkit?

Can you do ajax on ASP.net webform without using ajax toolkit? (Please post a example link) ...

What causes the 'Cannot unregister UpdatePanel' error?

I've got a UserControl that contains an UpdatePanel. When I put that on a page, it throws the following error: Cannot unregister UpdatePanel with ID 'ReviewContentUpdatePanel' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, w...

Sys.WebForms.PageRequestManagerServerErrorException 12031

I'm occasionaly getting the following popup from an AJAX.NET application Sys.WebForms.PageRequestManagerServerErrorException: An Unknown error occurred while processing the request on the server. The status code returned from the server was: 12031 From the Microsoft kb that status code indicates a ERROR_INTERNET_CONNECTION_RESET, but i...

Load multiple external websites into one webpage via re-using ONE IFrame + Ajax

I am trying to embed multiple external websites into one web page. Using an IFRAME works ok, but once you get past 10 embedded iframes, the memory fottprint starts to get too big. So I was thinking, is it possible via ajax/javascript, to re-use the same iframe to load the collection of websites one after enother, and display the result...

ASP.NET: Warning on changed data closing windows

I'd like to warn users when they try to close a browser window if they didn't save the changes they made in the web form. I'm using ASP.NET 3.5 (with ASP.NET Ajax). Is there a common solution which I could easily implement? EDIT: maybe my question wasn't clear: I am specifically looking for a way which integrates gracefully in the ASP...

ASP.NET Ajax: close window after Ajax call?

I'm using ASP.NET Ajax. How can I tell the browser to close the current window after the server call finishes (server-side code)? I managed to do this using the ASP.NET Ajax's ScriptManager method "RegisterDataItem" in the server method (inside a button click handler): sm.RegisterDataItem(ActionLabel, "action:closewindow") and a hidd...

ASP.NET AjaxControlToolKit Accordion set active pane via javascript

I would like to be able to change the active pane of an accordion using javascript. I see a behavior set_SelectedIndex but I can not seem to get it to work. How can I find out what the supported methods are for this control? How can I set the selected index from the page? ...

Passing data to server code from a client-side control using ASP.NET AJAX

I have a ListView on a page that displays a list of widgets. When a user clicks on one of the items in the list, I want to display a ModalPopup that contains controls allowing the user to operate on the item they selected. I could easily accomplish this by placing a Panel and a ModalPopupExtender in the ListView's ItemTemplate, but thi...

AJAX to WCF not working in FireFox

I'm trying to get this sample for AJAX to WCF working, with the following code. When viewed in FF, nothing is displayed, and when viewed in IE, the time is displayed. I'm using IIS 7, btw. function getTime() { TimeService.TimeService.GetTimeFormatted("dd-mm-yyyy [hh:mm:ss]", onMethodCompleted, onMethodFailed); ...

Using ASP.Net ajax library for cross browser Xml manipulation

I am currently updating a web app that uses ActiveX objects in client side code to manipulate some xml. Of course, this app only works in IE and I need to get it cross browser compatible. I am looking to get a javascript xml library to handle the cross browser oddities, and was wondering if the ASP.Net ajax library would work. I have ...