Click here to Skip to main content
15,888,977 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to import gmail,yahoo, etc. contacts in asp.net Pin
Gaurav Dudeja India18-Apr-10 22:20
Gaurav Dudeja India18-Apr-10 22:20 
GeneralRe: How to import gmail,yahoo, etc. contacts in asp.net Pin
Abhijit Jana18-Apr-10 22:50
professionalAbhijit Jana18-Apr-10 22:50 
GeneralRe: How to import gmail,yahoo, etc. contacts in asp.net Pin
Gaurav Dudeja India18-Apr-10 22:57
Gaurav Dudeja India18-Apr-10 22:57 
QuestionSearcching Pin
dfsdsf4343418-Apr-10 20:59
dfsdsf4343418-Apr-10 20:59 
AnswerRe: Searcching Pin
Abhijit Jana18-Apr-10 21:14
professionalAbhijit Jana18-Apr-10 21:14 
AnswerRe: Searcching Pin
Sandesh M Patil18-Apr-10 23:02
Sandesh M Patil18-Apr-10 23:02 
QuestionImage url getting wrong Pin
Member 438775718-Apr-10 20:24
Member 438775718-Apr-10 20:24 
QuestionRegular Expression for link in vb.net label. Pin
Member 412548018-Apr-10 14:57
Member 412548018-Apr-10 14:57 
Hi All,

I've got text going into a DB which may contain links, or naked URL's.

I do cleanup on the way in to avoid XSS attacks, but on the way out, I want any URL's to display as links.

So, I've got a couple possibilities. If the link is already within an anchor tag, then I want it to display properly as a link.

If the link is a plain URL within the text, I need to add an anchor tag.

I'm currently using:

Regex.Replace(dr.Item(1), "(http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&amp;:/~\+#]*[\w\-\@?^=%&amp;/~\+#])", Function(match As Match) String.Format("<a href=""{0}"">{0}</a>", match.ToString()), RegexOptions.IgnoreCase)

This will add an anchor tag surrounding a naked URL, but what I need is for it not to act on a URL that is already within an anchor tags.

Help please?
AnswerRe: Regular Expression for link in vb.net label. Pin
Not Active18-Apr-10 15:16
mentorNot Active18-Apr-10 15:16 
AnswerRe: Regular Expression for link in vb.net label. Pin
Member 412548018-Apr-10 17:26
Member 412548018-Apr-10 17:26 
QuestionHow to check email existence with asp.net Pin
Shahriar Iqbal Chowdhury/Galib18-Apr-10 9:15
professionalShahriar Iqbal Chowdhury/Galib18-Apr-10 9:15 
AnswerRe: How to check email existence with asp.net Pin
Not Active18-Apr-10 11:44
mentorNot Active18-Apr-10 11:44 
Questiontransferring files Pin
leone18-Apr-10 8:44
leone18-Apr-10 8:44 
AnswerRe: transferring files Pin
michaelschmitt18-Apr-10 10:42
michaelschmitt18-Apr-10 10:42 
AnswerRe: transferring files Pin
Michel Godfroid18-Apr-10 19:46
Michel Godfroid18-Apr-10 19:46 
QuestionRadGrid keeping textboxes in sync with bounddata column? Pin
Steve Holdorf18-Apr-10 8:27
Steve Holdorf18-Apr-10 8:27 
AnswerRe: RadGrid keeping textboxes in sync with bounddata column? Pin
daveyerwin18-Apr-10 8:35
daveyerwin18-Apr-10 8:35 
GeneralRe: RadGrid keeping textboxes in sync with bounddata column? Pin
Steve Holdorf18-Apr-10 9:13
Steve Holdorf18-Apr-10 9:13 
GeneralRe: RadGrid keeping textboxes in sync with bounddata column? Pin
daveyerwin18-Apr-10 12:49
daveyerwin18-Apr-10 12:49 
GeneralRe: RadGrid keeping textboxes in sync with bounddata column? Pin
Steve Holdorf18-Apr-10 13:15
Steve Holdorf18-Apr-10 13:15 
QuestionCan I Bind method to the control? Pin
marijus518-Apr-10 5:34
marijus518-Apr-10 5:34 
AnswerRe: Can I Bind method to the control? Pin
Brij18-Apr-10 6:20
mentorBrij18-Apr-10 6:20 
GeneralRe: Can I Bind method to the control? Pin
marijus518-Apr-10 7:18
marijus518-Apr-10 7:18 
GeneralRe: Can I Bind method to the control? Pin
Brij18-Apr-10 7:58
mentorBrij18-Apr-10 7:58 
QuestionIssue with WebToolBox.DatePicker... Pin
<<Tash18>>18-Apr-10 3:39
<<Tash18>>18-Apr-10 3:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.