我有2个应用程序,一个在Classic ASP中,另一个在C#中。我希望通过HttpRequest以同步的方式在我的C#Application中获取ASP的Applications变量。我怎么能这样做?
答案 0 :(得分:1)
编写一个经典的asp脚本,写出所请求的应用程序变量。考虑安全问题。
示例:
if session("isLoggedInOrSomething") = true then
if request.form("act") = "gimmeAppVar" then
response.write application( request.form("requestedAppVar") )
end if
end if
现在通过HttpRequest从你的c#调用.asp页面并发布所需的参数......