How could i Validation in radtextbox web address

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

    Posted 15 Oct 2012 Link to this post


    Hi

    I have used Textbox in Web Address.
    How to check Validation web address.
    Below my coding and also see my screen shot.



    <telerik:RadTextBox Width="95%" ID="WebAddress" AutoCompleteType="Disabled" runat="server" FocusedStyle-BackColor="Lavender"
                                                                Text='<%# Bind("webaddress") %>' MaxLength="50" onkeydown = "return (event.keyCode!=13);" CssClass="Lowercase1">
                                                            </telerik:RadTextBox>

    <telerik:RadInputManager ID="RadInputManager1" runat="server" EnableEmbeddedSkins="false">
    <telerik:RegExpTextBoxSetting ValidationExpression="^\w+([-+.']\w+)*\.\w+([-.]\w+)*$"
                                                                ErrorMessage="Web Address">
                                                                <TargetControls>
                                                                    <telerik:TargetInput ControlID="WebAddress" />
                                                                </TargetControls>
                                                            </telerik:RegExpTextBoxSetting>
    </telerik:RadInputManager>


    Thanks
    Ansari
  2. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 18 Oct 2012 Link to this post

    Hello Ansari,

    The RadInputManager is used to extend the functionality of the default asp:TextBox. In other words you can use it to validate asp:TextBox. Check out this demo to see how it works. If you want to validate the RadTextBox you have to use the asp:RegularExpressionValidator. For a live example, see the Validation demo

    All the best,
    Kostadin
    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 18 Oct 2012 Link to this post

    Thanks for ur reply Kostadin

    Ur answer its working good,
    i want same validation in web address also.

    Thanks
    Ansari.
  5. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 23 Oct 2012 Link to this post

    Hello Ansari,

    You could use some of the approaches in the demos provided in my previous reply to validate the web address. First, choose what kind of control you would like to use, whether the Telerik RadTextBox or the default asp:TextBox. Note that you could not use Telerik RadTextBox with the RadInputManager like you tried in your first post.

    All the best,
    Kostadin
    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.
Back to Top