开发者

Can we use a class created in an .asp file in a C# file

In my company 开发者_JAVA技巧one of the applications is a classic asp based application.In this application one the .asp has a Class Definition and a function associated with the class.I want to use this class an aspx.cs page.Is it possible to do this and how


They do not mix. You will have to refactor the class into an appropriate C# class library or file.


Why not just copy the class over to a .CS file since ASP and ASP.NET don't live in the same space. You've already got the code, just move it and modify it as appropriate.


No, it is not possible, AFAIK.

The code in your .asp file is interpreted at runtime. Your .aspx file is precompiled. Odds are that your .asp file is VBScript which is a completely different language.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜