Click here to Skip to main content
15,911,039 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have an Aspxtextbox
I want to validate the input value from database if the name existed in data base I want to show in label sorry this name exist in the client side event validation without click any buttons and without server postback






Please suggest me with some sample code i am using devexpress v11.1.

Thanks in advance.....
Posted

If you're using a third party library you should talk to them about using their specific components, but in general, your chosen tags are correct. You'd make an AJAX call, passing in the textbox data, and then when the call returned, you'd know what text to put in your label, if any. There's tons of sample code along these lines on the web, and there's too many bits to expect anyone to write it fresh for you, esp as the impression I get is that you just want to copy and paste it and you've not given us enough info to make that possible.
 
Share this answer
 
Comments
Sarah Mohammed77 13-Feb-12 14:23pm    
I'm a beginner just I need code but in client side
look I've this code but in server side

DataTable dt = new DataTable();
dt = dbc.select("select statment");
if (dt.Rows.Count > 0)
{


Label1.Text = "wrong";
}
else
{
Label1.Text = "right";

}
}
I want to do that in server client without postback just after write the name in textbox
Christian Graus 13-Feb-12 14:25pm    
How do you have DevExpress if you're a beginner ? Doesn't that cost money ? To do it like this, you need an UpdatePanel from the ASP.NET AJAX toolkit to wrap it all up for you. IMO, your skillset will thank you if you avoid that nastiness and learn jQuery and use that to handle your AJAX call and setting your label values.
Sarah Mohammed77 13-Feb-12 16:18pm    
thanx for you but really I still need help.
Christian Graus 13-Feb-12 16:25pm    
I am not surprised. But, no-one is going to write all the code for you. I've told you what bits you need, but even if I wanted to write it all, I couldn't based on what you've said. If you don't know how to do it, I've given you the keywords to google for articles and tutorials. If you're not able to or don't want to spend the time learning it, then you're not an appropriate person to be given this task, and it makes no sense for me to give you a free ticket this time, when all you'll be able to do with your next task, is to ask us to do your work again. You should do some learning, talk to your manager if need be, and post here when you've spent some time learning and writing code and have a specific question.
Hi,

you can use UpdatePanel, please check this link

this may help you,


thanks
-Amit.
 
Share this answer
 
and this link for any body will find the title in search I wish it helps



<a href="http://www.aspdotnet-suresh.com/2011/03/how-to-check-username-availability.html"></a>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900