3

I used Response.Write to write dynamic javascript into a page to test some values in code using an alert box (couldn't step through on a test machine using a build). I've reverted the code, Rebuilt, deleted all the temp data from IE and the alert still shows.

I implemented this through a recommendation (foolishly, apparently) and now I can't get rid it.

Can anyone tell me how to "undo" this?

Yatrix
  • 13,361
  • 16
  • 48
  • 78
  • 2
    View source, search for `alert` in the HTML source in your browser, and track it back to what is generating it. Removing the lines of `Response.Write` should definitely remove the javascript, regardless of the browser cache. You may still have some other test code in there that you've forgotten about, or maybe you didn't revert back far enough if you're using a source control system. – mellamokb Mar 27 '12 at 16:09
  • It's defintely reverted. It's all in one place and I manually deleted and committed code. I'll look into your other suggestion, though. – Yatrix Mar 27 '12 at 16:13
  • @mellamokb How do I trace it back to what is generating it? Looking at the mark-up in the browser, I see the scripts that were inserted but I don't know how to trace them. – Yatrix Mar 27 '12 at 16:33

1 Answers1

2

Start by restarting IIS (iisreset) to make sure IIS has dumped its cache. If that doesn't work and (you said IE was cleared) you can manually delete the ASP.NET precomiled temp files.

kpcrash
  • 350
  • 3
  • 13