Why can’t I put <%@ Page Language="C++" %> at the top of an ASPX file and write my server-side scripts in C++?
Ans) 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.