I need to开发者_运维百科 emulate a login where I pass the username and password to the asp.net page from classic asp page.
Did an exhausted search on this propble could not find good technique. Is http post to the asp.net from classic asp the right approch. If yes code snippet would be helpful.What other techniques can we use to accomplish this task?
Another technique could be to share the authenticated username via session: How to Share Session State Between Classic ASP and ASP.NET.
Any standard HTTP POST will work just fine. In the .aspx page that handles the POST it will just need to check Request.Form
for the key/value pairs from the classic form's POST.
If you don't control the .aspx page or can't change its code, then you can try naming the form elements in the classic ASP form the same as the ones in the .NET login form that it's emulating. I haven't tried that personally, but it's worth a shot.
精彩评论