Re: web in windows ?
From: Dominique Vandensteen (domi.vds_insert_at_tralala_tenforce.com)
Date: 02/10/04
- Next message: Rob Richardson: "Re: Why is one Access query a View and the other a Stored Procedure?"
- Previous message: Jorge: "Re: FindString CheckListBox"
- In reply to: Mike Smith: "Re: web in windows ?"
- Next in thread: Cor: "Re: web in windows ?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 10 Feb 2004 15:21:33 +0100
can you maybe send an example of what you want to do
but maybe this can help...
add a extra "non-html" tag before and after the part of html you need (if
this is possible)
browsers will simply ignore these not-known tags
so
...htmlcode and stuff...
<pompom>
...code to find...
</pompom>
...other htmlcode and stuff...
dim re as new Regex(".+<pompom>(.+)</pompom>.+")
dim m as Match = re.Match(theHtmlSourceAsString)
if(m.Success) then
dim myCode as String = m.Groups(1).Value
...
end if
if you have the correct structure you will have a match
this match will have one group containing the code you want to find...
(if i didn't made a regex error ;-))
dominique
"Mike Smith" <test@test.com> wrote in message
news:%23bOQEz97DHA.804@tk2msftngp13.phx.gbl...
> yeah realised i got to use back the old controls back in .net for it..
> thought there might be new ones.
>
> I basically want to parse a particular page content in an application.
This
> is my dilema now.
>
> The internet control can return me the sourcecode of a page from the
OpenUrl
> method, the trouble is the page has a script to be executed onLoad and i
> need to read the refreshed version of the source.
>
> The webbrowser control can link to the url i want and it runs the script
> onLoad and shows me the correct page to parse.. But i cant find any means
to
> retrieve the source of this control..
>
> So what do i do ????????????????????
>
>
> "Dominique Vandensteen" <domi.vds_insert@tralala_tenforce.com> wrote in
> message news:uyGiDo97DHA.2676@TK2MSFTNGP10.phx.gbl...
> > what do you want to do exactly?
> >
> > if for example you want to parse the html code to find one particular
part
> > of it, you can use regular expressions
> > System.Text.RegularExpressions
> >
> > dominique
> >
> > "Mike Smith" <test@test.com> wrote in message
> > news:OEeFly87DHA.3704@tk2msftngp13.phx.gbl...
> > > hi i was wondering if there was a HTML object in .net ?
> > > I need to access a particular web page in my windows application and
to
> be
> > > able to parse it. How is this done ? Is there an Inet control or
> something
> > > like in vb6 ?
> > >
> > >
> >
> >
>
>
- Next message: Rob Richardson: "Re: Why is one Access query a View and the other a Stored Procedure?"
- Previous message: Jorge: "Re: FindString CheckListBox"
- In reply to: Mike Smith: "Re: web in windows ?"
- Next in thread: Cor: "Re: web in windows ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|