8
Reply

how to generate text from SQL in textbox in ASP.NET

Emad khan

Emad khan

Mar 19 2014 3:04 AM
1.1k
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  [email protected]
2    Kamaal    [email protected]
3  Jamaal  [email protected]
---------------------------------------------
 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# ... ??

Answers (8)