deepa2585 0 Newbie Poster

Hello,

I am validating a textbox for TaxID using the foll code:

<asp:TextBox ID="txtTaxID" runat="server" Text='<%# Bind("nvchrTaxID") %>'></asp:TextBox>
<asp:RegularExpressionValidator ID="rvTaxID" runat="server" ControlToValidate="txtTaxID"
                                            ValidationExpression="^\d{2}-\d{7}$" ErrorMessage="Invalid Tax ID"></asp:RegularExpressionValidator>

My question is I dont want to save the TaxID with dash(-) in the database.How do I do that? please reply

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.