How to remove a client script in a page?

  • Thread starter Thread starter Hardy Wang
  • Start date Start date
H

Hardy Wang

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?
 
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
 

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