Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Missing IsClientScriptxxxRegistered method with ScriptManager

0 views
Skip to first unread message

WT

unread,
May 5, 2008, 9:46:24 AM5/5/08
to
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

bruce barker

unread,
May 5, 2008, 12:12:00 PM5/5/08
to
it tests if the script has already been added.

-- bruce (sqlwork.com)

Steven Cheng [MSFT]

unread,
May 5, 2008, 11:38:37 PM5/5/08
to
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:
msd...@microsoft.com.

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

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

WT

unread,
May 8, 2008, 9:22:57 AM5/8/08
to
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]" <stc...@online.microsoft.com> a écrit dans le message
de news:QZsEzqyr...@TK2MSFTNGHUB02.phx.gbl...

Steven Cheng [MSFT]

unread,
May 8, 2008, 10:23:17 PM5/8/08
to
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:
msd...@microsoft.com.

==================================================
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.
--------------------
>From: "WT" <W...@newsgroups.nospam>

>References: <7B42EE23-7864-4694...@microsoft.com>
<QZsEzqyr...@TK2MSFTNGHUB02.phx.gbl>
>In-Reply-To: <QZsEzqyr...@TK2MSFTNGHUB02.phx.gbl>
>Subject: Re: Missing IsClientScriptxxxRegistered method with ScriptManager
>Date: Thu, 8 May 2008 15:22:57 +0200

0 new messages