Question

Does anybody have a clue how I might embed an ASP.NET 3.5 app inside a Visual Basic 6 application?

My other option is to provide a hyperlink inside the VB6 application that will open the ASP.NET app.....BUT I would prefer to embed the ASP.NET app within a tab control in VB6 if at all possible.

thanks in advance

Was it helpful?

Solution

For the auto-login to the .net app (assuming it's ASP.net) I would have the vb6 application login process write a session GUID to the database, and use it as a get or post variable when building a link to the .net application.

On the ASP.NET side, modify your MembershipProvider to honor a guid and username as evidence of successful authentication to the vb6 app.

There may be some additional security precautions you should take depending on how guarded your environment needs to be.

OTHER TIPS

Realistically, your best option is probably to use the Web Browser control on a new tab, and point that at your ASP.NET application.

For auto-login, you SHOULD be able to have users login once. You'll probably need to enable a "remember me" feature in your ASP.NET application.

It'd be a two part process.

Create a .NET library to host asp.net, http://www.west-wind.com/presentations/aspnetruntime/aspnetruntime.asp.

Then use interopt to launch the library. Sounds like a really bad idea though.

o_O That sounds like a terrible idea.

I think you should give more background on the situation so alternatives can be suggested.

EDIT:

You say the VB6 app cannot be rewritten... can it be edited? Depending on the complexity of the functionality in the ASP.Net app you could alter the ASP.Net app to include a web service and access that functionality from the VB6 app.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top