combining methods

Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Aug 2008
Posts: 1,162
Reputation: dickersonka will become famous soon enough dickersonka will become famous soon enough 
Solved Threads: 137
dickersonka dickersonka is offline Offline
Veteran Poster

Re: combining methods

 
0
  #21
Dec 2nd, 2008
just to be sure we are still at the same place

what is the exact link that is passed in (what is linkItem)
Custom Application & Software Development
www.houseshark.net
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 89
Reputation: sfrider0 is an unknown quantity at this point 
Solved Threads: 0
sfrider0 sfrider0 is offline Offline
Junior Poster in Training

Re: combining methods

 
0
  #22
Dec 2nd, 2008
I just tried it on facebook.com and it worked fine. It took it a little while, but when it finished it showed up in my listView with "Good" or "Bad" next to it.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 89
Reputation: sfrider0 is an unknown quantity at this point 
Solved Threads: 0
sfrider0 sfrider0 is offline Offline
Junior Poster in Training

Re: combining methods

 
0
  #23
Dec 2nd, 2008
linkItem is the website url string. It's the link that is being checked.
ex. http://www.facebook.com/
Last edited by sfrider0; Dec 2nd, 2008 at 11:32 pm.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,162
Reputation: dickersonka will become famous soon enough dickersonka will become famous soon enough 
Solved Threads: 137
dickersonka dickersonka is offline Offline
Veteran Poster

Re: combining methods

 
0
  #24
Dec 2nd, 2008
right, but when that throws an exception, what is the linkItem?
Custom Application & Software Development
www.houseshark.net
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 89
Reputation: sfrider0 is an unknown quantity at this point 
Solved Threads: 0
sfrider0 sfrider0 is offline Offline
Junior Poster in Training

Re: combining methods

 
0
  #25
Dec 2nd, 2008
"javascript:void(0)"
Last edited by sfrider0; Dec 2nd, 2008 at 11:43 pm.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,162
Reputation: dickersonka will become famous soon enough dickersonka will become famous soon enough 
Solved Threads: 137
dickersonka dickersonka is offline Offline
Veteran Poster

Re: combining methods

 
0
  #26
Dec 2nd, 2008
lol whoa, i thought you said it was microsoft
Custom Application & Software Development
www.houseshark.net
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 89
Reputation: sfrider0 is an unknown quantity at this point 
Solved Threads: 0
sfrider0 sfrider0 is offline Offline
Junior Poster in Training

Re: combining methods

 
0
  #27
Dec 2nd, 2008
yeah, my bad. I was just looking at the console output the first time. Then I checked my locals and "javascript:void(0)" was in linkItem.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,162
Reputation: dickersonka will become famous soon enough dickersonka will become famous soon enough 
Solved Threads: 137
dickersonka dickersonka is offline Offline
Veteran Poster

Re: combining methods

 
1
  #28
Dec 2nd, 2008
right, then the exception is correct

uri is expected to be a registered prefix, and javascript is not, things are working properly!!!
Custom Application & Software Development
www.houseshark.net
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 89
Reputation: sfrider0 is an unknown quantity at this point 
Solved Threads: 0
sfrider0 sfrider0 is offline Offline
Junior Poster in Training

Re: combining methods

 
0
  #29
Dec 3rd, 2008
Yes!! Thank you for your help!! I just added this code in there just to get it to run.
  1. if (!(linkItem.StartsWith("http://") || linkItem.StartsWith("https://")))
  2. linkItem = "http://link.bad/";
It works perfect now. I'm not real familiar with exceptions so I don't know how to get it to throw an exception when I get javascript or some other type link.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC