I was wondering if there is any way to validate a user typeed link.
The user is going to type or copy the link in a text box.
Is there any way to validate this link through some code ?
I need to provide a text box to the user. The user is going to either type a link in the text box or copy a link and this is going to be saved in the database.
This is the reason why I need to validate the link in the text box.
If the user has typed this link wrong in the text box I can show a message box.
are you going to provide valids url's to validate against? if not you will have to write that in code unless there is some third party app that will do that for you..
Hi,
Just an added note..The URL can be valid but totally incorrect - you may want to find some way of testing its 'correctness' - that is , can you go to that entered link?..
May not be important, but just thought a reminder about user error would be helpful..
To Paraphrase:"The Help you get is proportional to the Help you give.."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.