Re: IE hosted .NET control as webservice client

From: Dmitriy Lapshin [C# / .NET MVP] (x-code_at_no-spam-please.hotpop.com)
Date: 03/17/04


Date: Wed, 17 Mar 2004 12:41:37 +0200

Hi Igor,

The hosted controls know nothing about the session.To the best of my
knowledge, there is no built-in means to transfer session to the control
hosted on the client side. You could probably specify the session ID as one
of the parameters within the <OBJECT> tag so the control will then be able
to supply the session ID when invoking the Web service. This is just an
"off-the-top-of-my-head" suggestion though, I haven't tested it.

P.S. Please don't cross-post that aggressively.

-- 
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Igor Kramaric" <igor.kramaric@zg.htnet.hr> wrote in message
news:udZm2XADEHA.3024@tk2msftngp13.phx.gbl...
> Hi all,
> here is my  story:
>
> WHAT I HAVE
> I'v got a web aplication (many aspx and html pages), some of this (html)
> pages host .Net windows controls (derived from
> System.Windows.Forms.UserControl) inside HTML page. These controls are web
> service clients on same web server, in the same web application.
Webservice
> is session enabled. It resides inside of the same application with my web
> pages (aspx).
>
> WHAT IS THE PROBLEM
> For some reason first time control is accesing the web service new session
> is created, although I was already browsing with my IE through my
> application, having already one session created. It seems that control
> hosted in IE can not share this session, or that is somehow not aware of
it.
>
> WHAT I WOULD LIKE
> I would simply like to share the same session no matter if i'm browsing my
> aspx,html pages or i'm accesing webservice from my IE hosted control.
>
> Any advice?
>
> Thanks,
>
> Igor Kramaric
>
>


Relevant Pages

  • Re: How do you figure out how much memory a class is using?
    ... Can you elaborate on how you control these with some sample code? ... Session, Viewstate, Cache, Application. ... > "Joe Fallon" wrote in message ... >> Jay, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Session Madness
    ... Well Kevin, whatever the truth behind the problem, your suggestion saved the ... > has something to do with why the Control is not being rendered as ... that it is not a good idea to store UI elements in Session. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IE hosted .NET control as webservice client
    ... The hosted controls know nothing about the session.To the best of my ... You could probably specify the session ID as one ... of the parameters within the tag so the control will then be able ... > I'v got a web aplication (many aspx and html pages), ...
    (microsoft.public.dotnet.languages.csharp)
  • IE hosted .NET control as webservice client
    ... I'v got a web aplication (many aspx and html pages), ... For some reason first time control is accesing the web service new session ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • IE hosted .NET control as webservice client
    ... I'v got a web aplication (many aspx and html pages), ... For some reason first time control is accesing the web service new session ...
    (microsoft.public.dotnet.languages.csharp)

Loading