Missing IsClientScriptxxxRegistered method with ScriptManager

  • Thread starter Thread starter WT
  • Start date Start date
W

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
 
it tests if the script has already been added.

-- bruce (sqlwork.com)
 
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:
(e-mail address removed).

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

--------------------
 
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
 
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:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
In-Reply-To: <[email protected]>
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]" <[email protected]> a écrit dans le message
de news:[email protected]...
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:
(e-mail address removed).

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top