Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a SQL Table named PROFILE in which there are three columns (ID , UserName ,Email) ... ID is autogenerated and is a PRIMARY KEY , heres some dummy data for that table .
_____________________________________________
ID | UserName | Email
---------------------------------------------
1 Raheel abc@gmail.com
2 Kamaal xyz@gmail.com
3 Jamaal ksd@gmail.com
---------------------------------------------
Also i have a asp.net web form in which i have a TEXTBOX (whose ID is ValueBox) , what i want is that when a user types e.g (PROFILE.UserName) withour brackets and then press spacebar the UserName appears and replace that PROFILE.UserName written in that TextBox .... for e.g if i am talking about ID 1 , which is Raheel ... when a user types " My name is Profile.UserName" and after Profile.UserName he press Spacebar the text in TextBox becomes " My name is Raheel" ... how to do this in asp.net C# ... ??
Posted
Comments
ravikhoda 19-Mar-14 4:40am    
you can call textchange event method of textbox and pass value of ID to the database and get the name you want. just remember that you need to pass the unique id for each members..
Emad Hassan Khan 19-Mar-14 4:55am    
how ? please clearify with coding ... will be thankful to u

1 solution

 
Share this answer
 
Comments
Emad Hassan Khan 19-Mar-14 11:25am    
That did'nt solve my problem !
Ajith K Gatty 20-Mar-14 0:19am    
debug it with break point..check what error it is giving
Emad Hassan Khan 20-Mar-14 2:58am    
actaually i mean to say , i did'nt even got the solving starting point of my query .... that links won't help me a bit .... try to read my query please . then share your knowledge

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