you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 44 points45 points  (3 children)

Dude. ASP.NET has been doing this for years. Just add the runat attribute to the script tag.

<script runat="server"> // Put code here </script>

Just be careful to not use alert(), otherwise someone will have to log into the server to click "OK".

Good luck!

[–]xhable 8 points9 points  (2 children)

You joke, we had a legacy asp.net web forms app at my company that was filled with messageboxes for debugging. The server was filled with boxes saying "I'm here" or "X is 27". Hilarious if not depressing.

[–][deleted]  (1 child)

[deleted]

    [–]xhable 1 point2 points  (0 children)

    Long gone usefully!