User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 422,420 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 5,199 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Programming Forums
Views: 376 | Replies: 2
Reply
Join Date: Mar 2008
Posts: 19
Reputation: SubProf is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
SubProf's Avatar
SubProf SubProf is offline Offline
Newbie Poster

eb browser question

  #1  
Jun 9th, 2008
Hello everyone,

I have a question regarding the web browser in visual studio 2005.

At the moment I have a web browser that navigates to the URL that I have typed into the combobox when the 'GO' button is pressed. I'm wondering is it possible to extract specific links from a webpage and display them as a list in the web browser window without displaying the whole web page?

Thanks in advance

SubProf
Last edited by SubProf : Jun 9th, 2008 at 12:31 pm.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2006
Location: Egypt
Posts: 762
Reputation: RamyMahrous is on a distinguished road 
Rep Power: 4
Solved Threads: 59
Featured Poster
RamyMahrous's Avatar
RamyMahrous RamyMahrous is offline Offline
Master Poster

Re: eb browser question

  #2  
Jun 9th, 2008
You can parse your webpage and extract URLs from using Regular Expression, then displaying them as list
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Reply With Quote  
Join Date: Mar 2008
Posts: 19
Reputation: SubProf is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
SubProf's Avatar
SubProf SubProf is offline Offline
Newbie Poster

Re: eb browser question

  #3  
Jun 10th, 2008
Hi RamyMahrous,

I attempted what you suggested but I'm having a problem with the regular expression to extract the URLs. My code is:

 Regex r = new Regex("href\\s*=\\s*(?:(?:\\\"(?[^\\\"]*)\\\")|(?[^\\s]* ))"); 

the error I'm receiving is:

ArgumentException was unhandled - parsing "href\s*=\s*(?: (?:\"(?[^\"]*)\")|(?[^\s]* ))" - Unrecognized grouping construct

I would appreciate any help with this.

Thanks in advance

SubProf
Last edited by SubProf : Jun 10th, 2008 at 12:42 pm. Reason: s
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C# Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C# Forum

All times are GMT -4. The time now is 9:38 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC