I am using Twitter-Bootstrap in .NET 4.0. I do not use additional jQuery validation plugins.
I have this code:
<asp:TextBox ID="Url" runat="server" required Text='' placeholder="enter the URL" pattern="http://*" messages="Must start with 'http://' or 'https://' "></asp:TextBox>
Regex validation works if I type 'asdf' into:

My question is: how do I configure the error "Please agree to the requested format" to say "Must start with" http: // "or" https: // "?
As you can see, I tried "messages =". I also tried several others.
- How to set up a general error message?
- Is there any documentation for Bootstrap that has more info on this?
source share