giveindia
asked on
Append http://www to a URL
I would like to append http://www. either through code or in IIS. What is the best way of going about this ?
Thanks,
Aditya
Thanks,
Aditya
Try checking whether the string starts with "http://www." first:
If Not strURL.StartsWith("http://www.", StringComparison.InvariantCulture) Then
strURL = "http://www." & strURL
End if
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That worked.
strNewURL = "http://www." & strOldURL
...but it's hard to say without more information.