Why not create a web service and send it behind the scenes? No browser popups needed.
And don't rely on IE. The user may have a different prefered browser.
>We have a VFP9 Windows app that displays our customers information. We want to create a button that will open a new IE window and pass the current customer ID to our ASP.Net web app.
>
>Below is what we are currently doing. This works but if there is a IE session currently running, the below will open the new URL in a new tab in the current session of IE. This causes problems such as cookies being overwritten etc...
>
>How can we make sure a new IE session gets opened that ignores any other IE session?
>
>Thanks,
>
>Jerry
>
>
>tc_url = "www.ouraddress.com"
>tc_Action = [OPEN]
>tc_Directory = SYS(2023)
>tc_Params = []
>
>DECLARE INTEGER ShellExecute ;
> IN SHELL32.dll ;
> INTEGER nWinHandle, ;
> STRING cOperation, ;
> STRING cFileName, ;
> STRING cParameters, ;
> STRING cDirectory, ;
> INTEGER nShowWindow
>
>DECLARE INTEGER FindWindow ;
> IN WIN32API STRING cNull, STRING cWinName
>
>ShellExecute(FindWindow(0, _SCREEN.Caption), ;
> tc_Action, tc_Url, tc_Params, tc_Directory, 1)
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer