Questions tagged [scriptmanager]

ScriptManager is an ASP.NET control that manages ASP.NET Ajax script libraries and is used for Ajax enabled controls, such as UpdatePanels

ScriptManager is an ASP.NET control that manages ASP.NET Ajax script libraries. The ScriptManager performs the following functions.

  1. Enables partial page rendering
  2. Enables client side script access to web services
  3. Enables use of authentication and profile services from the client

Only one ScriptManager can be allowed per page. For scenarios where a second ScriptManager reference is required, such as within an usercontrol, the ScriptManagerProxy control should be used.

521 questions
10
votes
4 answers

WebResource.axd and ScriptResource.axd load very slowly

Under normal circumstances the two .axd files load at normal speeds to the browser, i.e. a few hundred milliseconds. I can see them load normally along with all the other page elements by looking at the waterfall chart (network chart) in chrome or…
Dave Sumter
  • 2,926
  • 1
  • 21
  • 29
9
votes
1 answer

setting the ScriptManager AsyncPostBackTimeout value on the ASP.NET content page

I am using Master pages for my ASP.NET website and in one of the content pages I upload a file which requires a bigger timeout value than the default 90 seconds. For other content pages I want to leave the default timeout value as it is. Is it…
RKP
  • 5,285
  • 22
  • 70
  • 111
8
votes
3 answers

Problem with ScriptManager.RegisterClientScriptBlock and jQuery in Internet Explorer 8

I want to use jGrowl plugin for jQuery (http://stanlemon.net/projects/jgrowl.html#samples) to display some messages on a page. To do this, I call the ScriptManager.RegisterClientScriptBlock method like…
8
votes
2 answers

How to retain script block on a partial postback?

This is a problem I'm facing in a webapp I'm currently working on. So instead of cluttering the question with unrelated code, I recreated the problem in an isolated, simplified webapp that only demonstrates this issue. Hopefully this helps in…
BeemerGuy
  • 8,139
  • 2
  • 35
  • 46
8
votes
2 answers

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…
Nevin Mathai
  • 2,316
  • 13
  • 39
  • 54
8
votes
1 answer

ScriptManager.RegisterClientScriptInclude does not work in UpdatePanel

I've read through the net but haven't found a solution to the following problem. I have this example page (_ScriptManager.aspx) with a ScriptManager, an UpdatePanel, a MultiView with two Views and two LinkButtons two switch between the views. The…
Oliver
  • 9,239
  • 9
  • 69
  • 100
7
votes
2 answers

Alert message from C#

Is there any other way to display alert message from back end in asp.net web application rather than this. ScriptManager.RegisterStartupScript(this, GetType(), "alertMessage","alert('Called from code-behind directly!');", true); I have included…
Neelam Prajapati
  • 3,764
  • 3
  • 28
  • 62
7
votes
3 answers

append versionnumber to asp:ScriptManager's compositescript tag

we are trying to get the following scenario working: we use asp:scriptmanager / CompositeScripts to combine our scripts into a few script blocks but after each deploy to the test system we have trouble with testers not getting updated versions of…
AndreasKnudsen
  • 3,453
  • 5
  • 28
  • 33
7
votes
2 answers

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
Matt
  • 5,547
  • 23
  • 82
  • 121
6
votes
6 answers

ASP.NET Ajax client-side framework failed to load

I got this error: ASP.NET Ajax client-side framework failed to load with the error: 'Sys' is undefined. The error qppears in IE on the bottom (error message), and appears only when i'm running the site on server. on my localhost everything…
Oshrib
  • 1,789
  • 12
  • 40
  • 67
6
votes
5 answers

Script control is not a registered script control

I have a page that uses CustomerDetails.ascx. It uses CM.ascx. Inside CM.ascx I use AJAX Data Controls GridView with ID="gdvRecommendation". Sometimes when I browse to the page I get the following exception: Script control 'gdvRecommendation' is…
Naor
  • 23,465
  • 48
  • 152
  • 268
6
votes
1 answer

ScriptManager.axd will not cache

OK, this is driving me crazy. I've searched for hours & tried almost everything, but scripts downloaded with ScriptManager.axd will not cache. They ALWAYS end up marked as no-cache with a expires=-1. I posted this at the following link , but…
Mr Smith
  • 3,318
  • 9
  • 47
  • 85
6
votes
3 answers

What exactly is the point of the ScriptManager's EnablePartialRendering Attribute

Why would one want the EnablePartialRendering attribute to ever be "false" if building AJAX functionality into pages? Seems counter-productive. I've read here and there some things one may want to do with the attribute being false. But what I've…
TheHolyTerrah
  • 2,859
  • 3
  • 43
  • 50
6
votes
1 answer

How to whitelist dynamically created scripts in a WebForms project using CSP (Content Security Policy)?

Is there a secure way of whitelisting dynamically created scripts in a WebForms project using CSP (Content Security Policy)? Using unsafe-inline like below it works but not recommended. context.Response.Headers.Append("Content-Security-Policy",…
Ned
  • 1,055
  • 9
  • 34
  • 58
6
votes
7 answers

scriptreference named respond no longer works

Using: Visual Studio Express 2013 for Web to write a .NET 4.5.1 site. Project initially built on the default "Create New Website" template therefore the parts in question were added to my project by the IDE and have not been edited. This has been a…
Adam Wood
  • 289
  • 2
  • 4
  • 13
1
2
3
34 35