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
47
votes
6 answers

RegisterStartupScript doesn't work with ScriptManager,Updatepanel. Why is that?

protected void timer1_Tick(object sender, EventArgs e) { foreach (RepeaterItem item in rpChat.Items) { TextBox txt = item.FindControl("txtChatMessage") as TextBox; if (txt != null) { …
sly_Chandan
  • 3,437
  • 12
  • 54
  • 83
34
votes
10 answers

Can't get ScriptManager.RegisterStartupScript in WebControl nested in UpdatePanel to work

I am having what I believe should be a fairly simple problem, but for the life of me I cannot see my problem. The problem is related to ScriptManager.RegisterStartupScript, something I have used many times before. The scenario I have is that I have…
Chris
  • 3,487
  • 3
  • 25
  • 37
28
votes
7 answers

Add ScriptManager to Page Programmatically?

I am developing a WebPart (it will be used in a SharePoint environment, although it does not use the Object Model) that I want to expose AJAX functionality in. Because of the nature of the environment, Adding the Script Manager directly to the page…
Kyle Trauberman
  • 25,414
  • 13
  • 85
  • 121
26
votes
1 answer

Error with JQuery Mobile

Below, I am receiving this error: I have narrowed the problem code to JQuery Mobile 1.0 or greater and Asp.NET ScriptManager. I added a new Web Forms Project to Visual Studio 2012 and included the code below: <%@ Page Language="C#"…
deDogs
  • 739
  • 1
  • 8
  • 24
25
votes
4 answers

ScriptManager.RegisterStartupScript code not working - why?

I have used code like this in the past to successfully pop up an alert message on my asp.net webpage. Now it is not working. I can't figure out why. ScriptManager.RegisterStartupScript(this, typeof(Page), UniqueID, "alert('This pops up')",…
TheMoot
  • 2,903
  • 4
  • 26
  • 27
21
votes
1 answer

Difference between script manager and toolkit script manager

What are the differences between ScriptManager and ToolkitScriptManager? I found only one convincing reason: that ToolkitScriptManager improves page performance. If so why use ScriptManager?
Devjosh
  • 6,450
  • 4
  • 39
  • 61
20
votes
3 answers

How to get the ScriptManager of Master Page into Child page's code behind c# (.cs) file

Following is the web site environment I created: I have a Master page. I have created a Child page from it. I have placed Script Manager on the Master page. Now I want to access that Master page's Script Manager to create a User Control…
Imran Rizvi
  • 7,331
  • 11
  • 57
  • 101
19
votes
2 answers

Difference between ScriptManager and ScriptManagerProxy in asp.net

What is the difference between scriptmanager and scriptmanagerproxy in asp .net?
Neeraj
  • 265
  • 2
  • 4
  • 15
19
votes
1 answer

How can you tell if a method is being run in UpdatePanel postback?

How can I tell if a method is running in the context of an AJAX postback (i.e as the result of a UpdatePanel (asynchronous) postback)? According to egoldin Page.IsAsync is a very common confusion that has absolutely nothing to do with AJAX. The…
rohancragg
  • 5,030
  • 5
  • 36
  • 47
14
votes
3 answers

RegisterClientScriptBlock parameters usages in real scenarios?

https://i.stack.imgur.com/dVjHt.jpg I never understood the real usage of the Control , type,key usages of this class. In general Ive always used with : this , GetType() , "xx" but now I truly want to understand . msdn : Control : " the control…
Royi Namir
  • 144,742
  • 138
  • 468
  • 792
12
votes
5 answers

How do I force ScriptManager to serve CDN scripts over SSL

We have a site served on a web farm. The farm is behind an SSL Accellerator which handles the encryption. This means that our IIS servers see all incoming connections as http, even though users all connect to the site via https. We are beginning…
Jake Hall
  • 1,963
  • 22
  • 24
11
votes
3 answers

Proper way to include scripts in an asp.net page

I've got an ASP.NET application that uses a mixture of ASP.NET AJAX (Including UpdatePanel) and jQuery written by several developers of differing backgrounds. Some included scripts within the ScriptManager itself…
Greg
  • 16,540
  • 9
  • 51
  • 97
11
votes
5 answers

ScriptManager and UpdatePanel not found in namespace System.Web.UI

I have a MVC4/Web API project and I created a test page that consumes the Web API using Ajax. Testing was going great, so I began working on the UI. One thing I needed to do was to populate some form controls with data returned from the Web API. I…
rwkiii
  • 5,716
  • 18
  • 65
  • 114
11
votes
4 answers

asp.net ScriptManager PageMethods is undefined

I want to call static server-side methods from JS so i decide to use ScriptManager control on my site. So i have a master page, with such structure: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="TopLevelMasterPage.Master.cs" …
igorGIS
  • 1,888
  • 4
  • 27
  • 41
10
votes
3 answers

UpdatePanel with input type other than text in html5

I am developing an open source project for rendering HTML5 using ASP.NET. Here you can take a look: http://asphtml5.codeplex.com/ now I have a problem with update panel in posting back the input values that have type other than 'text'. as you might…
Maziar Taheri
  • 2,288
  • 22
  • 27
1
2 3
34 35