Delphi as a scripting language
The first thing to support ASP.NET is to let ASP.NET regard Delphi as a scripting language, allowing ASP.NET to call Delphi .NET compiler for a variety of ASP file types.
ASP.NET To find a web.config file in the root of the IIS virtual path. Below is a Web.config formulated file content using Delphi's scripting language in ASP.NET:
For details on the Web formulation, please refer to MSDN: http://msdn.microsoft.com/library/default.asp? Url = / library / en-us / cpguide / html / cpconformatofconfigurationFiles.asp
Test Delphi's support for ASP.NET on my machine (Win2k Pro). To add a virtual path to place the Delphi script, I set this path name as "vslive".
After this small change on my machine is made, you can see how ASP.NET will treat Delphi as a scripting language.
Using Delphi code in ASP.NET first prepares a simple application to confirm that our Delphi support is correct. Below is the code of the EditDemo.aspx file, there is a text input box, a button. Buttons Event Trigger Displays the input box content.