| | |
combining methods
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Aug 2008
Posts: 1,162
Reputation:
Solved Threads: 137
just to be sure we are still at the same place
what is the exact link that is passed in (what is linkItem)
what is the exact link that is passed in (what is linkItem)
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Oct 2008
Posts: 89
Reputation:
Solved Threads: 0
linkItem is the website url string. It's the link that is being checked.
ex. http://www.facebook.com/
ex. http://www.facebook.com/
Last edited by sfrider0; Dec 2nd, 2008 at 11:32 pm.
•
•
Join Date: Aug 2008
Posts: 1,162
Reputation:
Solved Threads: 137
right, but when that throws an exception, what is the linkItem?
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Aug 2008
Posts: 1,162
Reputation:
Solved Threads: 137
lol whoa, i thought you said it was microsoft
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Aug 2008
Posts: 1,162
Reputation:
Solved Threads: 137
right, then the exception is correct
uri is expected to be a registered prefix, and javascript is not, things are working properly!!!
uri is expected to be a registered prefix, and javascript is not, things are working properly!!!
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Oct 2008
Posts: 89
Reputation:
Solved Threads: 0
Yes!! Thank you for your help!! I just added this code in there just to get it to run.
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.
C# Syntax (Toggle Plain Text)
if (!(linkItem.StartsWith("http://") || linkItem.StartsWith("https://"))) linkItem = "http://link.bad/";
![]() |
Similar Threads
- Turtle graph (Python)
- Ever used a methodology for website creativity? (Site Layout and Usability)
- Help with class methods (Java)
- Plz, helping with writing a bit of code. Thanks (C++)
- couple of questions about encapsulation (C++)
Other Threads in the C# Forum
- Previous Thread: Communicating Data Between Forms
- Next Thread: exception pleasehelp
| Thread Tools | Search this Thread |
.net access ado.net algorithm alignment array barchart bitmap box broadcast buttons c# c#gridviewcolumn check checkbox client color combobox communication control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing elevated encryption enum event excel file focus forloop form format forms function gdi+ hospitalmanagementsystem httpwebrequest image index input install java label list listbox login mandelbrot math mouseclick mysql operator path photoshop picturebox pixelinversion plotting pointer post programming radians read regex remote remoting richtextbox serialization server sleep socket sql statistics stream string stringformatting sun table text textbox thread time timer update usercontrol validation visualstudio webbrowser windows winforms wpf xml






