[CLOSED] Setup MaskRe for Textfield RAZOR

  1. #1

    [CLOSED] Setup MaskRe for Textfield RAZOR

    I need a text box which allow alphanumeric and don't allow space or special character in it except , (dot) and (-) hyphen it .
    I read http://docs.sencha.com/extjs/4.2.1/#!/api/RegExp,but but unable to do exact MaskRe configuration for textfield in RAZOR
    Last edited by Daniil; Aug 14, 2014 at 4:34 AM. Reason: [CLOSED]
  2. #2
    Ok, so what regex patterns have you tried? Do you have a sample that demonstrates the scenario? Do you have some some sample input strings that we can test with?

    We've asked you many times to post proper code samples, and unfortunately we will not be asking again. If you cannot post adequate code samples with your future posts, we will not help and you will not receive a reply from the Ext.NET support team.
    Geoffrey McGill
    Founder
  3. #3
    Please fully read and agree to the following Forum Guidelines before posting again in the Ext.NET forums:

    http://forums.ext.net/showthread.php...ing-New-Topics

    http://forums.ext.net/showthread.php...ation-Required
    Geoffrey McGill
    Founder
  4. #4
    Apologies for this,and thanks for your suggestion.I will keep this in mind from my next help request,by mistake I forget to post a my sample.

    bellow is my sample code .which is works fine.

    Html.X().TextField().MaskRe("^[A-Za-z0-9-.]+$")
    but I want to add other characters if required .all I can add but problem with Space and (\).
    Last edited by matrixwebtech; Aug 13, 2014 at 8:50 AM.
  5. #5
    I would try this:
    @Html.X().TextField().MaskRe(@"^[A-Za-z0-9-. \\]+$")
  6. #6
    Thanks for help.

Similar Threads

  1. [CLOSED] MVC Razor - How to show currency in FormpanelFor textfield
    By LAEUser in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 21, 2014, 10:39 AM
  2. [CLOSED] Seeing Border Around the ComboBox and TextField control in Razor
    By pawangyanwali in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 24, 2012, 7:01 PM
  3. [CLOSED] [Razor] Setup Auto load panel in razor
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 27, 2012, 10:54 AM
  4. [CLOSED] Get value from textfield in controller [Razor]
    By boris in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 10, 2012, 7:19 PM
  5. 1.0 Sample Site Setup
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 0
    Last Post: Mar 02, 2010, 9:50 AM

Posting Permissions