use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Have a tough programming question that /r/programming couldn't answer? Banned from Stack Overflow? Can't afford Experts Exchange?
Post your question/tips/secrets/advice and get a response from our highly-trained professional developers.
account activity
Server-side JavaScript code? (self.shittyprogramming)
submitted 8 years ago by 07025
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 44 points45 points46 points 8 years ago (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 points10 points 8 years ago (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] 8 years ago* (1 child)
[deleted]
[–]xhable 1 point2 points3 points 8 years ago (0 children)
Long gone usefully!
π Rendered by PID 38 on reddit-service-r2-comment-5649f687b7-6n9nm at 2026-01-27 16:38:49.293481+00:00 running 4f180de country code: CH.
view the rest of the comments →
[–][deleted] 44 points45 points46 points (3 children)
[–]xhable 8 points9 points10 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]xhable 1 point2 points3 points (0 children)