Sandeep Kumar

Sandeep Kumar

  • 1.1k
  • 683
  • 60.4k

How To SET CUSTOM TEXTBOX validation

Apr 28 2022 8:13 AM

I have a  TextBox id txtInvoiceNo in which Invoice No must be in the given format AD2122IN01999.

 Means First Two  will be in letters then numeric then again two letters and so on as mention above in yellow color

<div class="row">
                                <div class="col-sm-3" style="width: 17%">
                                    Invoice No.
                                </div>
                                <div class="col-sm-1" style="width: 24%">
                                    <asp:TextBox ID="txtInvoiceNo" runat="server" Width="100%"></asp:TextBox>
                                </div>

</div>

 

<div>

<asp:Button Id=BsnSave runat=server onclick=btnsave()>


Answers (3)