albert albert

albert albert

  • NA
  • 524
  • 0

http:// for www

Apr 24 2014 4:44 AM
Hi everybody,

I have this:

[code]
If (TxtURL.Text.StartsWith("http://") And TxtURL.Text.EndsWith(".com")) OrElse (TxtURL.Text.Contains("www")) Then
                TxtURL.Text = "http://" & TxtURL.Text
[/code]

So I enter a link, like for example this: www.ad.nl, then it will set to: http://www.ad.nl

But the problem is that if I want to update record. For example the name, then in the database the link will be: http://http://www.ad.nl

and not: http://www.ad.nl

Thank you

Answers (2)