o URL starts with a-z, A-Z (e.g. http, ftp...)
o It is then followed by ://
o next we have more letters, numbers and special chars : a-z, A-Z, 0-9, -, _
o there must be at least one "."
o A URL can contain at it's end part the more special characters and this is why the last part allows for more options such as ?, /, &, %, etc. you may add/remove chars as needed to your code.

Hope this will help you

DL M replied to Anandh Ramanujam on 07-Dec-10 05:22 AM

Try below Sample code

<asp:TextBox ID="txtWebUrl" />

<asp:Button ID="btnSubmit" OnClientClick=" return validate()" runat="server" Text="Submit" />
Now on the source code of this form in script tag write the following code: