Re: Open Browse

From: JD (no_at_address.org)
Date: 09/09/04


Date: Thu, 9 Sep 2004 15:07:42 -0400

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("MyVar"), 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" <ruuca@iol.pt> wrote in message
news:OYaLUynlEHA.596@TK2MSFTNGP11.phx.gbl...
> How can I do that?
>
> "JD" <no@address.org> escreveu na mensagem
> news:%23pVOwdblEHA.3968@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" <ruuca@iol.pt> wrote in message
> > news:%23eBWzhZlEHA.1244@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" <notfirstname@planet.nl> escreveu na mensagem
> > > news:uQPi4XZlEHA.952@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?
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Loading