Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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

0
Posted

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

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.