Delete a Script Block

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

    Delete a Script Block

    Hi,

    I have a registered a script block using: Me.Page.Registe rClientScriptBl ock

    Is there a way to delete this registered script block using asp.net

    Thanks
    Kiran


  • Mark Rae

    #2
    Re: Delete a Script Block

    "Kiran" <kiran@kumar.co m> wrote in message
    news:OcRWFL%23Q FHA.1176@TK2MSF TNGP12.phx.gbl. ..
    [color=blue]
    > Hi,
    >
    > I have a registered a script block using:
    > Me.Page.Registe rClientScriptBl ock
    >
    > Is there a way to delete this registered script block using asp.net
    >
    > Thanks
    > Kiran
    >[/color]


    Comment

    • Mark Rae

      #3
      Re: Delete a Script Block

      "Kiran" <kiran@kumar.co m> wrote in message
      news:OcRWFL%23Q FHA.1176@TK2MSF TNGP12.phx.gbl. ..
      [color=blue]
      > I have a registered a script block using:
      > Me.Page.Registe rClientScriptBl ock
      >
      > Is there a way to delete this registered script block using asp.net[/color]

      Have you tried remming it out...?


      Comment

      • Kiran

        #4
        Re: Delete a Script Block

        Hi,

        Can you tell me what you mean by that

        Thanks
        Kiran
        "Mark Rae" <mark@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
        news:u1y7Dg%23Q FHA.2736@TK2MSF TNGP09.phx.gbl. ..[color=blue]
        > "Kiran" <kiran@kumar.co m> wrote in message
        > news:OcRWFL%23Q FHA.1176@TK2MSF TNGP12.phx.gbl. ..
        >[color=green]
        >> I have a registered a script block using:
        >> Me.Page.Registe rClientScriptBl ock
        >>
        >> Is there a way to delete this registered script block using asp.net[/color]
        >
        > Have you tried remming it out...?
        >[/color]


        Comment

        • Mark Rae

          #5
          Re: Delete a Script Block

          "Kiran" <kiran@kumar.co m> wrote in message
          news:eKT12o%23Q FHA.1528@TK2MSF TNGP09.phx.gbl. ..
          [color=blue]
          > Can you tell me what you mean by that[/color]

          Put an apostrophe in front of the statement...e.g .

          'Me.......


          Comment

          • Kiran

            #6
            Re: Delete a Script Block

            Hi Rae,

            I am adding a script block with name "Client" in one function.

            In some other function I have to check whether any script block exists with
            name "Client"

            If exits

            Delete and Add

            else

            Add


            Now, for this kind of situation, I need to know how to delete a script block

            Thanks
            Kiran

            "Mark Rae" <mark@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
            news:%23flIg%23 %23QFHA.3096@TK 2MSFTNGP12.phx. gbl...[color=blue]
            > "Kiran" <kiran@kumar.co m> wrote in message
            > news:eKT12o%23Q FHA.1528@TK2MSF TNGP09.phx.gbl. ..
            >[color=green]
            >> Can you tell me what you mean by that[/color]
            >
            > Put an apostrophe in front of the statement...e.g .
            >
            > 'Me.......
            >[/color]


            Comment

            • Brock Allen

              #7
              Re: Delete a Script Block

              There's no public way to remove one that's already been added. The trick
              is to not add it in the frist place. Not that this helps you :)

              -Brock
              DevelopMentor



              [color=blue]
              > Hi,
              >
              > I have a registered a script block using:
              > Me.Page.Registe rClientScriptBl ock
              >
              > Is there a way to delete this registered script block using asp.net
              >
              > Thanks
              > Kiran[/color]



              Comment

              Working...