You might want to look at ASP.NET if your requirement is to run code server side.