Originally posted by maddudemike
right i just got a c# compiler and i want to know what are good sites for learning c# and how can you put c# programs in to webpages? if its possible? or only .exes allowed to be made?
Regarding C#, there are numerous sites with tutorials, you can try GodDotNet.com, that has articles, tutorials, message boards, etc.
However, keep in mind that a new version of .net (2.0) is going to be released in November.
In C# the differences are not many, but important (such as generics or iterators), you can still start learning because those topics are advanced stuff.
Regarding putting C# on a web page, well, it is a complex question, the answer is yes but...
Basically, you can have different situations:
1) you are running a web application. This has to be done through an ASP.net application, which only runs on IIS (that means, Windows). Basically, an asp.net page has an aspx extension, and normally the so called "code behind", that is the code that drives the page (similar to scripts in php or asp), the difference is that it's compiled in to .dll that it's then executed on the server to render the page.
2) you can have class libraries written in C#, they will be .dll, they can have some functionality for your application (for example in the so called multi-tier applications) and they will be called from the .dll mentioned above (this is a simplification).
3) I guess you could run a .dll in the cgi-bin, but I don't think anybody would do that now, still, you need the .net framework installed.
4) you can indeed have an .exe on a web server and run it on a local machine, this is tricky though. It won't run on the server, it will actually download the file and run it on your local machine but, you need to have appropriate security policies in your machine, otherwise the OS won't run the code. Basically you need to have the website in your list of trusted sites to run code from, and you have to specify what that code can do. Not a very common scenario, it's theoretically possible but I don't see any use for it and it's dangerous, especially since with the new version of the framework, they implemented something called "click once" that allow you to deploy desktop application through the web (meaning, you download an installer).