check if username exists

2 posts, 0 answers
  1. robert
    robert avatar
    6 posts
    Member since:
    Dec 2008

    Posted 12 Jun 2009 Link to this post

    Dear Telerik,

    I'm trying to find a way to check whether an username exists during the registration. Preferable while the user is typing his/her username. This could be done through a webservice. Does the input control support this feature? Is their code online which shows how this will work?

    Thanks in advance.

    Testing Telerik.
  2. Veli
    Veli avatar
    2002 posts

    Posted 15 Jun 2009 Link to this post

    Hi robert,

    RadInput does not readily offer binding to web services for value checks. However, you can implement this functionality both on the client and on the server.

    On the server, you can have RadTextBox postback on losing focus by setting its AutoPostBack="true" property. The server-side event that is fired is TextChanged. There, you can check your changed value and display a message. More information on the TextChanged event of RadInput you can find here.

    If you want to perform name checking on the client, you can use RadInput's client-side API, particularly its OnKeyPress client-side event. More information on the topic you can find here.

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top