This is a migrated thread and some comments may be shown as answers.

How could i TextBox AutoCompleteType Disable in email Validation

2 Answers 134 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Tamim
Top achievements
Rank 1
Tamim asked on 21 Nov 2012, 06:14 AM

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 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 23 Nov 2012, 03:57 PM
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.
0
Tamim
Top achievements
Rank 1
answered on 24 Nov 2012, 04:07 AM
Thanks for ur reply Vasil now is working

Thanks
Ansari
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Tamim
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Tamim
Top achievements
Rank 1
Share this question
or