473,401 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Missing IsClientScriptxxxRegistered method with ScriptManager

WT
Hello,

How could we simulate the IsClientScriptBlocRegistered method of
ClientScript when we use an update panel and the static ScriptManager ?
Is this test already included in the ScriptManager.Registerxxx methods ?

Regards
CS

Jun 27 '08 #1
4 1703
it tests if the script has already been added.

-- bruce (sqlwork.com)
"WT" wrote:
Hello,

How could we simulate the IsClientScriptBlocRegistered method of
ClientScript when we use an update panel and the static ScriptManager ?
Is this test already included in the ScriptManager.Registerxxx methods ?

Regards
CS
Jun 27 '08 #2
Hi CS,

As for the AJAX script manager, through the reflector code, you can find
that it will also get reference to the container Page and use
Page.ClientScript.RegisterXXX method. Therefore, just like you call
Page.RegisterXXX method, it will help maintain the existing script block or
overwrite the existing one(if the key is the same).

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "WT" <WT@newsgroups.nospam>
Subject: Missing IsClientScriptxxxRegistered method with ScriptManager
Date: Mon, 5 May 2008 15:46:24 +0200
Lines: 9

Hello,

How could we simulate the IsClientScriptBlocRegistered method of
ClientScript when we use an update panel and the static ScriptManager ?
Is this test already included in the ScriptManager.Registerxxx methods ?

Regards
CS

Jun 27 '08 #3
WT
Hi Steven,
So as soon as we are sure to have a ScriptManager in the page we could
switch all ClientScript calls to ScriptManager corresponding Methods ?

Regards
CS
"Steven Cheng [MSFT]" <st*****@online.microsoft.coma écrit dans le message
de news:QZ**************@TK2MSFTNGHUB02.phx.gbl...
Hi CS,

As for the AJAX script manager, through the reflector code, you can find
that it will also get reference to the container Page and use
Page.ClientScript.RegisterXXX method. Therefore, just like you call
Page.RegisterXXX method, it will help maintain the existing script block
or
overwrite the existing one(if the key is the same).

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.

--------------------
>>From: "WT" <WT@newsgroups.nospam>
Subject: Missing IsClientScriptxxxRegistered method with ScriptManager
Date: Mon, 5 May 2008 15:46:24 +0200
Lines: 9

Hello,

How could we simulate the IsClientScriptBlocRegistered method of
ClientScript when we use an update panel and the static ScriptManager ?
Is this test already included in the ScriptManager.Registerxxx methods ?

Regards
CS

Jun 27 '08 #4
Hi Cs,

Thanks for your reply.

The AJAX ScriptManager's register script functions also done some
additional things. For pages that use AJAX feature, I think you can
register scripts via the AJAX scriptmanager object. If your registered
scripts are used for standard web page processing and postback (rather than
ajax), you can still use the normal clientscriptmanager.

If you have any other questions, please feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "WT" <WT@newsgroups.nospam>
References: <7B**********************************@microsoft.co m>
<QZ**************@TK2MSFTNGHUB02.phx.gbl>
>In-Reply-To: <QZ**************@TK2MSFTNGHUB02.phx.gbl>
Subject: Re: Missing IsClientScriptxxxRegistered method with ScriptManager
Date: Thu, 8 May 2008 15:22:57 +0200

Hi Steven,
So as soon as we are sure to have a ScriptManager in the page we could
switch all ClientScript calls to ScriptManager corresponding Methods ?

Regards
CS
"Steven Cheng [MSFT]" <st*****@online.microsoft.coma écrit dans le
message
>de news:QZ**************@TK2MSFTNGHUB02.phx.gbl...
>Hi CS,

As for the AJAX script manager, through the reflector code, you can find
that it will also get reference to the container Page and use
Page.ClientScript.RegisterXXX method. Therefore, just like you call
Page.RegisterXXX method, it will help maintain the existing script block
or
overwrite the existing one(if the key is the same).

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you.
Please
>feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

================================================= =
This posting is provided "AS IS" with no warranties, and confers no
rights.

--------------------
>>>From: "WT" <WT@newsgroups.nospam>
Subject: Missing IsClientScriptxxxRegistered method with ScriptManager
Date: Mon, 5 May 2008 15:46:24 +0200
Lines: 9

Hello,

How could we simulate the IsClientScriptBlocRegistered method of
ClientScript when we use an update panel and the static ScriptManager ?
Is this test already included in the ScriptManager.Registerxxx methods ?

Regards
CS


Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Joe Johnson | last post by:
Greetings, I just did a fresh install of Solaris 10 on Sparc. The OS ships with perl_5.8.4. When I run some of my scripts that run fine on Linux, I get this: IO::Seekable::getpos missing at...
0
by: Jason Kester | last post by:
I've noticed some strange behavior with Atlas, and I'm wondering if anybody else is seeing this. Basically, from the moment I add a ScriptManager tag to one of my pages, any subsequent controls...
1
by: f3l | last post by:
I want to use non existing methods of a class: class x{ function y(){ } //more stuff }
11
by: =?Utf-8?B?VHJlbnQ=?= | last post by:
I have tied an AutoCompleteExtender to a textbox to indicate suggestions to the user. Everything works fine if I utilize a webservice to fetch the results. However, I want to put the web service...
2
by: Steve Kershaw | last post by:
Hey, I have a master.page and a Default.aspx page. I'm trying to use AJAX to postback to the server. However, when I place the <asp:ScriptManager ...tag on the Default.aspx page I get an "Element...
2
by: Bruce Wood | last post by:
SortedList<Tgeneric has most of the methods of the old SortedList class, but it's missing a few, and one in particular that puzzles me. Anyone know why it has no GetByIndex method? It has...
0
by: Krip | last post by:
When adding ASP.NET AJAX 1.0 ScriptManager and UpdatePanels to some pages in our Web Application project, we get the following error: "The type or namespace name 'ScriptManager' does not exist in...
5
by: Pselus | last post by:
I have a dynamically created page. The page creates an UpdatePanel (created at Design time) which has an ASP:Table (design time) in it. The table has rows with a textbox (run time) that runs some...
16
krungkrung
by: krungkrung | last post by:
Hi all, Can somebody help me figure out whats wrong with my program? I created a site with the use of MasterPage..and with a plan of utilizing and abusing the capabilities of AJAX, I added the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.