We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

MaskEditTextBox and regular expressions?

Thread ID:

Created:

Updated:

Platform:

Replies:

116002 Mar 15,2014 04:29 AM UTC Mar 17,2014 11:46 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: MaskedEditTextBox
John Hodgkinson
Asked On March 15, 2014 04:29 AM UTC

how can I create a mask for multiple expression. for example say I want to user to enter either a short zip code (5 digit) or a long zip code (zip +4)?

@Html.Syncfusion().MaskEditTextBoxFor(model => model.BusinessAddressZipCode, Model.BusinessAddressZipCode).Mask("99999")

@Html.Syncfusion().MaskEditTextBoxFor(model => model.BusinessAddressZipCode, Model.BusinessAddressZipCode).Mask("99999-9999")

I want to use a regular expression that would accept either formats, something like:

RegularExpression(@"(^(?!0{5})(\d{5})(?!-?0{4})(-?\d{4})?$)"

How can I do that?



Gurunathan A [Syncfusion]
Replied On March 17, 2014 11:46 AM UTC

Hi John,

Thanks for contacting Syncfusion support.

 

We regret to let you know that currently we don’t have support to Mask Edit textbox with regular expression options. So we have added it to our feature request list and it can be tracked through our Features Management System:

http://www.syncfusion.com/support/directtrac/features/MVC-3174


You can communicate with us regarding the open features at any time using the “Contact” option.

Please let us know if you have any questions about this.
Thanks,
Gurunathan


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;