What platforms does ASP.NET run on?
Currently, it's supported on Windows 2000 and Windows XP. ASP.NET integrates with Internet Information Server (IIS) and thus requires that IIS be installed. It runs on server and non-server editions of Windows 2000 and XP as long as IIS is installed. Microsoft originally planned to support ASP.NET on Windows NT 4.0, but had to reconsider due to time and technical constraints.
Can two different programming languages be mixed in a single ASPX file?
No. ASP.NET uses parsers to strip the code from ASPX files and copy it to temporary files containing derived Page classes, and a given parser understands only one language.
Why can't I put <%@ Page Language="C++" %> at the top of an ASPX file and write my server-side scripts in C++?
Because the parsers ASP.NET uses to extract code from ASPX files only understand C#, Visual Basic.NET, and JScript.NET. However, if you use code-behind to get your code out of the ASPX file and into a separately compiled source code file. You can write server-side scripts in any language supported by a .NET compiler.
Can I use code-behind with Global.asax files?
Yes. Here's a simple Global.asax file that doesn't use code-behind:
<%@ Import Namespace="System.Data" %>
Here's the equivalent file written to use code-behind:
<%@ Application Inherits="MyApp" %>
And here's the MyApp class that it references:
public class MyApp : HttpApplication
public void Application_Start ()
DataSet ds = new DataSet ();
Application["GlobalData"] = ds;
So that ASP.NET can find the MyApp class, compile it into a DLL (csc /t:library filename.cs) and place it in the application root's bin subdirectory.
Can you override method="post" in a