How could i TextBox AutoCompleteType Disable in email Validation

Thread is closed for posting
3 posts, 0 answers
  1. Tamim
    Tamim avatar
    64 posts
    Member since:
    May 2011

    Posted 21 Nov 2012 Link to this post


    Hi,
       I have used TextBox in my project.
    This is my coding
     <asp:TextBox Width="95%" ID="Email" AutoCompleteType="Disabled" runat="server" CssClass="Lowercase1" Text='<%# Bind("emailid") %>'  MaxLength="50" onkeydown = "return (event.keyCode!=13);"></asp:TextBox>

    Text box validate in Email

    <telerik:RadInputManager ID="RadInputManager1" runat="server" EnableEmbeddedSkins="false">
     <telerik:RegExpTextBoxSetting ValidationExpression="^[\w\.\-]+@[a-zA-Z0-9\-]+(\.[a-zA-Z0-9\-]{1,})*(\.[a-zA-Z]{2,3}){1,2}$"
       ErrorMessage="Invalid Email" EnabledCssClass="Lowercase1" DisabledCssClass="Lowercase1">
        <TargetControls>
          <telerik:TargetInput ControlID="Email" />
        </TargetControls>
      </telerik:RegExpTextBoxSetting>
    </telerik:RadInputManager>

    this coding is working perfectly but AutoCompleteType="Disabled" is not working

    same as Web address validation

    <telerik:RegExpTextBoxSetting ValidationExpression="www.([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?"
      ErrorMessage="Invalid Web Address" EnabledCssClass="Lowercase1" DisabledCssClass="Lowercase1">
       <TargetControls>
          <telerik:TargetInput ControlID="WebAddress" />
        </TargetControls>
     </telerik:RegExpTextBoxSetting>

    Plz reply soon

    Thanks,
    Ansari


  2. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 23 Nov 2012 Link to this post

    Hello Tamim,

    This seems to be a problem inside the asp:TextBox control, not in the RadAjaxManager. You could try to set the autocomplete attribute directly:

    <asp:TextBox Width="95%" ID="Email" autocomplete="off" runat="server" CssClass="Lowercase1" Text='<%# Bind("emailid") %>'  MaxLength="50" onkeydown = "return (event.keyCode!=13);"></asp:TextBox>

    Kind regards,
    Vasil
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tamim
    Tamim avatar
    64 posts
    Member since:
    May 2011

    Posted 23 Nov 2012 Link to this post

    Thanks for ur reply Vasil now is working

    Thanks
    Ansari
Back to Top