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

check if username exists

1 Answer 120 Views
Input
This is a migrated thread and some comments may be shown as answers.
robert
Top achievements
Rank 1
robert asked on 12 Jun 2009, 08:36 AM
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.

Robert
Testing Telerik.

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 15 Jun 2009, 03:23 PM
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,
Veli
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.
Tags
Input
Asked by
robert
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or