Re: web in windows ?

From: Dominique Vandensteen (domi.vds_insert_at_tralala_tenforce.com)
Date: 02/10/04


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 ?
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: web in windows ?
    ... I basically want to parse a particular page content in an application. ... The internet control can return me the sourcecode of a page from the OpenUrl ... the trouble is the page has a script to be executed onLoad and i ... The webbrowser control can link to the url i want and it runs the script ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Dynamic User Controls
    ... You will have to parse the "html" (which happens to be a little bit more ... You will have to parse the string in content. ... When you find some control you will have to first instantiate ... > detect this tag and actually load it in the place ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Setting FaceID on Custom Button
    ... You can, for example, apply a Tag to your control. ... the same way as you set the caption). ... "MyControl Off". ...
    (microsoft.public.word.docmanagement)
  • Re: Function executed twice
    ... I would also like to say, just in case you don't do it already, that using prefixes for your control ids can make it easier when working in code. ... You do NOT need to add anything to the tag in the *.aspx file ... > code-behid I usually click twice in the link/button and that will ADD the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Help needed with AddParsedSubObject() and ControlBuilder()
    ... I've created a test custom control that is declared as follows... ... The AddParsedSubObject code looks like this... ... that tag name as shown in the psuedo code below... ... How can I get to the tag name outside of GetChildControlType()? ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)