You have a Page class in which you call RegisterStartupScript to add a
script to the Page. IOW, you don't need to remove it. You just need to not
add it. Let's say that a PaperBoy delivers a paper to you every morning. At
some point, he starts adding some ad magazine with his delivery. You don't
want to remove the ad magazine from the paper delivery. You want to tell him
not to add it.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
"Hardy Wang" <ha*******@hotmail.com> wrote in message
news:#m**************@TK2MSFTNGP12.phx.gbl...
Hi,
I have a page which will call RegisterStartupScript function to
register a client script. I also need to remove it under some certain condition, is
there a way?
--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy