Thursday, June 23, 2022

Textbox with Uppercase and remove some characters in C# ASP.NET

 <asp:TextBox ID="txt_regid" runat="server" Style="text-transform: uppercase;" Width="250px"

                        CssClass="form-control" placeholder="Enter Student Reg. ID">

                    </asp:TextBox>

                    <cc1:FilteredTextBoxExtender ID="filterRegid" TargetControlID="txt_regid" FilterMode="InvalidChars"

                        InvalidChars="!@#$%^&*()+=<>{}[]|\?/.,';:" runat="server">

                    </cc1:FilteredTextBoxExtender>

No comments:

Post a Comment