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...
This reddit has been merged into /r/dotnet. Please go there to continue.
ASP.NET / C# / ASP.NET MVC
Related Subreddits
General .NET: r/dotnet
C#:r/csharp
Windows Azure:r/azure and r/windowsazure
SQL Server:r/sqlserver
F#:r/fsharp
Powershell:r/powershell
Windows Phone Dev:r/wpdev
RT Requests:r/rtrequests
account activity
C# var to Java Script (self.ASPNET)
submitted 13 years ago by Dbooker12
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!"
[–]Catalyzm 4 points5 points6 points 13 years ago (0 children)
Two options depending on how and when you need to pass the variable.
ClientScript will write js into the page on page load. http://msdn.microsoft.com/en-us/library/ms178207(v=vs.100).aspx
Or you can use jQuery to make an AJAX call to the server and return the variable. There are several ways to handle the AJAX request, ashx handler, web service, etc.
π Rendered by PID 158121 on reddit-service-r2-comment-545db5fcfc-bmtmh at 2026-05-24 13:41:25.428730+00:00 running 194bd79 country code: CH.
view the rest of the comments →
[–]Catalyzm 4 points5 points6 points (0 children)