As an example....
In your body tag of your web page you could do:
<body MyVar=<%= Session("MyVar") %> >
Then your windows form do:
Private Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.AxWebBrowser1.Navigate2("http://localhost/MySite/WebForm1.aspx")
End Sub
Private Sub AxWebBrowser1_DocumentComplete(ByVal sender As Object, ByVal
e As AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent ) Handles
AxWebBrowser1.DocumentComplete
Dim S3 As String =
CType(AxWebBrowser1.Document.body.getAttribute("My Var"), String)
End Sub
But you don't have to do just the body tag attribute, you could do this as
hidden input, xml tag, etc....
"ruca" <ru***@iol.pt> wrote in message
news:OY*************@TK2MSFTNGP11.phx.gbl...
How can I do that?
"JD" <no@address.org> escreveu na mensagem
news:%2****************@TK2MSFTNGP11.phx.gbl... Well you could hide the server side session variable in the html
document, then retrieve it by using the AxWebBrowser1.Document and the DOM.
"ruca" <ru***@iol.pt> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl... So..................
I can't do nothing about this?
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca
"Cor Ligthert" <no**********@planet.nl> escreveu na mensagem
news:uQ*************@TK2MSFTNGP14.phx.gbl...
> Ruca,
>
> The session variables are Server Side using a webform in a
windowform is > Client Side.
>
> Cor
>
> > In some pages I use Session variables. Can I pass values for that
session
> > variables? How?
> >
>
>