I guess I need help from geniuses every day :(
I quiet struggled with this and could not figure this out.
I have bunch of textboxes on my ASP.NET form.
I found a problem with character ' (next to the enter key) this causes error when
a user types in, because it gets denied by our SQL Server.
So somehow I want to disable this character in ALL OF MY TEXTBOXES.
I tried to use ASP Validation control first, but there are hundreds of textboxes, so I gave up..
Here is what I tried:
<asp:TextBox runat="server" MaxLength="200" TextMode="multiline"
AutoPostBack="false" ID="textboxDescription" Rows="3" Width="300px"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ErrorMessage="' is not allowed."
IT WORKS. But is there a another way to do this? I have like 200 textboxes, which this
View Complete Post