Missing IsClientScriptxxxRegistered method with ScriptManager

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • WT

    #1

    Missing IsClientScriptxxxRegistered method with ScriptManager

    Hello,

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

    Regards
    CS

  • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

    #2
    RE: Missing IsClientScriptx xxRegistered method with ScriptManager

    it tests if the script has already been added.

    -- bruce (sqlwork.com)


    "WT" wrote:
    Hello,
    >
    How could we simulate the IsClientScriptB locRegistered method of
    ClientScript when we use an update panel and the static ScriptManager ?
    Is this test already included in the ScriptManager.R egisterxxx methods ?
    >
    Regards
    CS
    >

    Comment

    • Steven Cheng [MSFT]

      #3
      RE: Missing IsClientScriptx xxRegistered method with ScriptManager

      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.ClientScri pt.RegisterXXX method. Therefore, just like you call
      Page.RegisterXX X 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:
      msdnmg@microsof t.com.

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

      --------------------
      >From: "WT" <WT@newsgroups. nospam>
      >Subject: Missing IsClientScriptx xxRegistered method with ScriptManager
      >Date: Mon, 5 May 2008 15:46:24 +0200
      >Lines: 9
      >
      >Hello,
      >
      >How could we simulate the IsClientScriptB locRegistered method of
      >ClientScript when we use an update panel and the static ScriptManager ?
      >Is this test already included in the ScriptManager.R egisterxxx methods ?
      >
      >Regards
      >CS
      >
      >

      Comment

      • WT

        #4
        Re: Missing IsClientScriptx xxRegistered method with ScriptManager

        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]" <stcheng@online .microsoft.coma écrit dans le message
        de news:QZsEzqyrIH A.1784@TK2MSFTN GHUB02.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.ClientScri pt.RegisterXXX method. Therefore, just like you call
        Page.RegisterXX X 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:
        msdnmg@microsof t.com.
        >
        =============== =============== =============== =====
        This posting is provided "AS IS" with no warranties, and confers no
        rights.
        >
        --------------------
        >>From: "WT" <WT@newsgroups. nospam>
        >>Subject: Missing IsClientScriptx xxRegistered method with ScriptManager
        >>Date: Mon, 5 May 2008 15:46:24 +0200
        >>Lines: 9
        >>
        >>Hello,
        >>
        >>How could we simulate the IsClientScriptB locRegistered method of
        >>ClientScrip t when we use an update panel and the static ScriptManager ?
        >>Is this test already included in the ScriptManager.R egisterxxx methods ?
        >>
        >>Regards
        >>CS
        >>
        >>
        >

        Comment

        • Steven Cheng [MSFT]

          #5
          Re: Missing IsClientScriptx xxRegistered method with ScriptManager

          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 clientscriptman ager.

          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:
          msdnmg@microsof t.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: <7B42EE23-7864-4694-9465-E52FFC839210@mi crosoft.com>
          <QZsEzqyrIHA.17 84@TK2MSFTNGHUB 02.phx.gbl>
          >In-Reply-To: <QZsEzqyrIHA.17 84@TK2MSFTNGHUB 02.phx.gbl>
          >Subject: Re: Missing IsClientScriptx xxRegistered 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]" <stcheng@online .microsoft.coma écrit dans le
          message
          >de news:QZsEzqyrIH A.1784@TK2MSFTN GHUB02.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.ClientScr ipt.RegisterXXX method. Therefore, just like you call
          >Page.RegisterX XX 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:
          >msdnmg@microsof t.com.
          >>
          >============== =============== =============== ======
          >This posting is provided "AS IS" with no warranties, and confers no
          >rights.
          >>
          >--------------------
          >>>From: "WT" <WT@newsgroups. nospam>
          >>>Subject: Missing IsClientScriptx xxRegistered method with ScriptManager
          >>>Date: Mon, 5 May 2008 15:46:24 +0200
          >>>Lines: 9
          >>>
          >>>Hello,
          >>>
          >>>How could we simulate the IsClientScriptB locRegistered method of
          >>>ClientScri pt when we use an update panel and the static ScriptManager ?
          >>>Is this test already included in the ScriptManager.R egisterxxx methods ?
          >>>
          >>>Regards
          >>>CS
          >>>
          >>>
          >>
          >
          >

          Comment

          Working...