Guys I need to store the exact value (including the mask) from my maskedtextox into my database. My maskedtextbox has 5 digits (ex. 20000) but when I am saving it and checking it into my database, only the first non-zero digits are being saved.

How do I deal with this?

what is the field type you are storing in. It should be text if you want the exact pattern stored.

Yes, all my fields have been set to Text type.

so when you enter 20000 what ends up in the text field, and what is the mask you are using

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.