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
6
votes
1 answer

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…
jball
  • 24,791
  • 9
  • 70
  • 92
6
votes
2 answers

ASP.NET Timer only works in debug mode

I am using the ajax timer control inside an update panel.
jimbo
  • 582
  • 1
  • 11
  • 28
6
votes
2 answers

The name 'ScriptManager' does not exist in the current context

I copied some code to solve a problem with running JavaScript after an AJAX postback in ASP.Net. Unfortunately the new code gave me the following error when doing a build: The name 'ScriptManager' does not exist in the current context Now I've used…
Dean
  • 4,554
  • 7
  • 34
  • 45
6
votes
5 answers

AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts Error

I'm experiencing a AjaxToolkit Calendar display error in production only. Locally when debugging, this problem does not exist and the calendar datepicker works perfectly. All of the other posts revolve around this Toolkit not working at all. I'm…
Rafiki
  • 630
  • 1
  • 8
  • 22
5
votes
1 answer

How to use external js file in ScriptManager.RegisterStartupScript?

i have a control which is on update panel. i want my javascript code run every time the updatePAnel is updated. i use something like this: ScriptManager.RegisterStartupScript(this, GetType(), "my_script", "runFunction();", true); the problem is…
user1178399
  • 1,028
  • 8
  • 17
  • 32
5
votes
1 answer

How do I disable chunked transfer-encoding when using compressed dynamic content?

I want to disable chunked transfer encoding on my web server, in order to avoid this bug: http://support.microsoft.com/kb/871205 . Unfortunately, I need to support IE6 on Win2k, so they cannot install the patch. I found instructions to set…
5
votes
3 answers

How to add Script in the Page dynamically

I use asp.net 4 and c#. I have a Web User Control inside a Web From page. When I include the Web User Control I would like also include programmatically some script within the tags for the final generated page. Any idea how to do it? Maybe…
GibboK
  • 71,848
  • 143
  • 435
  • 658
5
votes
4 answers

Call JavaScript function from global.asax.cs

I want to call the JavaScript function (which internally shows a popup about the error message) from global.asax.cs file. Here is my code that I am trying in Global.asax.cs file, protected void Application_Error(object sender, EventArgs e) { …
mehul9595
  • 1,925
  • 7
  • 32
  • 55
5
votes
2 answers

What the difference between Debug and Release in ScriptManagers's ScriptMode?

In ASP.NET AJAX, I can set ScriptMode for ScriptManager. The script mode can be Debug or Release. What are the exact differences between them? Is it true that on debug mode, generated scripts won't cache on the browser while in Release mode they…
ml123
  • 67
  • 1
  • 3
5
votes
2 answers

How do I use constructor of a remote Page to create an Object in my Greasemonkey UserScript?

The page on which my userscript will run has a namespace, the namespace defines a constructor function. I would like to create an object using the same constructor and use methods of the object in my userscript. So far I have been unsuccessful.…
miniGweek
  • 380
  • 4
  • 15
5
votes
2 answers

Using a ScriptManager in razor?

Must be a simple question, but I cannot for the life of me figure out how to include a script manager in my view. doesn't work. Anyone know?
Xodarap
  • 11,581
  • 11
  • 56
  • 94
5
votes
2 answers

How to run javascript from c# in asp.net

I am new to Asp.Net and i have my aspx page like this <%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="TestJs.aspx.cs" Inherits="tms.Test.TestJs" %>
Murtaza Munshi
  • 1,065
  • 4
  • 13
  • 40
5
votes
2 answers

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…
Tim Danner
  • 630
  • 8
  • 20
5
votes
1 answer

How to include latest Jquery using in asp.net 4.5?

i want to include latest jquery in my web application. Bydefault jquery 1.7.1 is getting load. i know following code is responsible for that. but what should i do to load jquery 1.10?
juhi
  • 320
  • 1
  • 3
  • 15
5
votes
2 answers

asp.net 4.5 script bundles nor bundeling nor minifying

I upgraded a project from asp.net 3.5 to 4.5 in order to use script bundling and minification of javascript. Now I have it all running and the scripts all come out in the bundle that I defined but they are not "bundled" together in one script and…
JGoodgive
  • 1,068
  • 10
  • 20
1 2
3
34 35