pass form data to asp page from ASP .net
-
Hi. I've been working on a new .net login system at my job and I've been running into many problems. I need to convert the asp page to .net, and the conversion never works because the asp has COM and a lot of SSI's in it, and a lot of it is giberish anyway. So i figured i could pass form data to it to get it to think it was getting data from itself, the only problem is we're adding a "User needs to change password screen" and so there's another asp .net page it gets sent to first. i figured Server.Transfer could handle classic ASP from .net, only it throws an exception every time. So, basically i need a way to pass form data to the asp page WITHOUT response.write() writing out a form with a button and username/password in the hidden inputs. A server-side way would be preferred. Is this possible or should I just start looking forward to the COM and ASP and SSI madness?
-- Steven Hunt
-
Hi. I've been working on a new .net login system at my job and I've been running into many problems. I need to convert the asp page to .net, and the conversion never works because the asp has COM and a lot of SSI's in it, and a lot of it is giberish anyway. So i figured i could pass form data to it to get it to think it was getting data from itself, the only problem is we're adding a "User needs to change password screen" and so there's another asp .net page it gets sent to first. i figured Server.Transfer could handle classic ASP from .net, only it throws an exception every time. So, basically i need a way to pass form data to the asp page WITHOUT response.write() writing out a form with a button and username/password in the hidden inputs. A server-side way would be preferred. Is this possible or should I just start looking forward to the COM and ASP and SSI madness?
-- Steven Hunt
Have you tried the Respond.Redirect instead of the Server.Transfer? Also there is an AspCompat attribute in your @Page directive. This is what MS help says: AspCompat When set to true, allows the page to be executed on a single-threaded apartment (STA) thread. This allows the page to call STA components, such as a component developed with Microsoft Visual Basic 6.0. Setting this attribute to true also allows the page to call COM+ version 1.0 components that require access to unmanaged Active Server Pages (ASP) built-in objects. These are accessible through the ObjectContext object or the OnStartPage method. The default is false. Note Setting this attribute to true can cause your page's performance to degrade. For more information, see the Remarks section. Anyway, Hope that helps. Ben