scriptmanager

How can I call web service methods from javascript?

Is there any way to call web services from javascript? I know you can add in a script manager to pull in the web services but I can't figure out how to access the functions from javascript once I've done that. Thanks, Matt ...

Only one instance of a ScriptManager can be added to the page.

I had an ASP UpdatePanel to update a gridview which worked fine, now I wanted to also use AjaxControlToolkit for some of the controls in there, but after wiring up everything when I run I get an error "Only one instance of a ScriptManager can be added to the page." inspite of the fact that I commented off the ASP ScriptManager and a...

ScriptManager causes server error

I'm playing around with MonoDev on my mac and wanting to see how well it can run basic ASP.NET applications which I've worked on. I chose a very basic site, it's got a handful of ASP.NET pages, all of which inherit nested master pages and some ASP.NET AJAX stuff. The project is .NET 2.0 and I have the web.config set appropriately for AS...

asp.net Scriptmanager: why navigate event fires when clicking a linkbutton?

I have an aspx page with ScriptManager defined like this - When the user click a link button on this page (the linkbutton is inside a control), the event 'ScriptManager1_Navigate' is raised. Why is that? How do I prevent the 'ScriptManager1_Navigate' event from firing? Thanks! ...

UpdatePanel ScriptManager

I Include a ScriptManager and two UpdatePanels; I inlcude a timer in UpdatePanel1 and interval is 100 ;and timer_tick is label1.text=datetime.now.tostring(); and I include a combobox in second UpdatPanel2; and combobox contains 3 items; Now; I see the Date information in label1 it is ok; When I click ComboBox and I see the 3 items in ...

Which script makes up the composite script through firebug?

I put some jquery scripts in a CompositeScript and when I load the page and view the Net tab in firebug, I can't tell which of the scripts loading is the composite one. Is there a way to do this? I put jquery 1.4, jquery 1.7.2 ui, a javascript live validation and a custom js file in the block. ...

"Too much recursion" error when using intanceof over typeof?

I was making a function to convert all dates in an object to strings and when I used the following function I got a error in FF "too much recursion". (It also fails in IE and chrome) function datesToString(obj) { if (obj instanceof Object) { if (obj instanceof Date) { obj = "this part does not ma...

What is the correct way to register javascript for dynamic user controls in AJAX.NET update panel?

Hi all! I've been googling this for days. Found a few threads about similar issues, all without any meaningful answers... Maybe someone here can enlighten me. I'm developing an AJAX.NET application in VS2005 (.NET 2.0 with AJAX extensions). There's just one page that has a navigation panel and a content panel. Basically, both panels ar...

ASP CompositeControl & ScriptManager

I'm really new to the WebControl / CompositeControl world, and I have a small test class I am playing with. It's just a LinkButton that updates when clicked. Things work great when I leave it out of UpdatePanel. But when I try to run it inside I still get a full page POST response. How can I make this class work inside a UpdatePanel? H...

How to avoid multiple Page Load event on the pages with History Points?

Hello, I have page with UpdatePanel, ListView, ScriptManager and Navigate event. It shows a list of companies depending on the country selected. I've added HistoryPoint with the selected country. When I try to load this page with history point in new browser window (i.e. country/browse.aspx#&&location=1) Page Load event fires before...

ScriptManager inside ascx page

I have a user control that I use in two different places (hence I created a control). Now, this control uses Web Method that I use to clear session from JS. The only problem is that I don't seem to find a way to include ScriptManager inside the ascx itself - only on the pages that host this control, which is prone to error and defeats th...

JQuery Plugins Not Working Correctly With ASP.NET AJAX's ScriptManager

I am trying to use a jQuery plugin in a control. The pages that the control can be on use partial postbacks via an UpdatePanel. I include jQuery and the plugin during the control's PreRender event like this: ScriptManager.RegisterClientScriptInclude( this, this.GetType(), "jquery", "/_infrastructure/javascript/jquery.js"...

Potential problems in setting AsyncPostBackTimeout to large value (300s)?

Are there any reasons to not set the ScriptManager.AsyncPostBackTimeout to a (comparitively) large value like 5 minutes? I have a report that takes anywhere from 30 to 180 seconds to run, which causes a Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out. error. In all my searching I can't find a downside of...

UpdatePanel doesn't do partial-page update, and IsInAsyncPostBack is always false

I'm attempting to use an UpdatePanel, but can't get partial-page updates to work. When I look at the ScriptManager's IsInAsyncPostBack property, it's always false. Here's a page that reproduces the issue. It has a ScriptManager, an UpdatePanel, a LinkButton within the update panel, and a Button wired up to the UpdatePanel via the Trigg...

ASP.NET ScriptManager CompositeScript doesn't work with javascript that requires querystring param

I have a jQuery function in a .js file, and the function requires a querystring parameter to be passed. If I try to use the CompositeScript feature in the ScriptManager, it pukes on the file that has the querystring. Is there any way around this? ...

ASP.Net ScriptManager and UpdatePanel ignoring javascript once posted back.

Hi, I am having major issues using UpdatePanels on a website. The problem is that when i use a ScriptManager, all client side JavaScript that was active when the page was originally loaded is lost once an update panel posts back. Here's what i'm trying to do... I have a number of .net calender controls on the same page each within i...

ScriptManager.AddHistoryPoint - page is displaying original page state first, then saved state

I'm using an UpdatePanel and the ScriptManager's AddHistoryPoint method to save my page state in the browser's history. The page is a simple search/results page with 2 states: STATE 1 - showing search filters STATE 2 - showing search results When I navigate back to the page (by clicking the back button in my browser), the page shows...

Modify the Asp.net Scriptmanager Ajax History

Using the Ajax-History Function of the Asp.net Scriptmanager in Asp.net 3.5 is a great way to support cross-browser history for Ajax-enabled applications. So we are using this functionality in our newest project (a asp.net 3.5-WebForms-Application). The most important issue for us in doing that are clean urls though. So as we are only ...

Can the ASP.NET ScriptManager be made to work with the Windows FIPS security policy?

If you enable the "Use FIPS compliant algorithms for encryption, hashing, and signing" security policy option in Windows, attempting to use many of the cryptographic classes in the .NET Framework will result in an InvalidOperationException. By default, ASP.NET uses AES to encrypt the ViewState blob, so it fails. You can work around this ...

ScriptManager does not honour LoadScriptsBeforeUI property when set to false

Hi, I am having some performance problems with IE 7, whereby the page pauses during rendering while scripts are loaded, this is at times taking up to 5 seconds and leaves the user with a blank screen while he/she waits. After a process of elimination I have deduced this is because of the scripts emitted by the asp.net ScriptManager cla...