Skip to content

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

Emad khan

Emad khan

Asked Mar 18, 2014, 11:04 PM EDT8 answers
Share
LinkedInX
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# ... ??

8 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Sunny  Sharma
    0
    Emad,

    Did you try this: http://bit.ly/1p9YB3G ?

    Also, do check for recommended answer right below your post. It helps!

    Cheers!!
    0
  • Emad khan
    0
    please try to understand what i mean to say .... well none of the links solved my query ... provide me with code please .... i have cleared all the situation ....what's up now >> ?
    0
  • Sunny  Sharma
    0
    Well, you need to work on your question. From your question what I can understand so far is you want to get data from or update data to SQL db.

    Show me your codes whatever have you tried so far. Try to simplify what you're trying to say in your question and you got us to help!
    0
  • Emad khan
    0
    actually i have got this task for a project , so far i haven't done any coding about this matter .... your coding a to z will be benefitial in this way
    0
  • Sunny  Sharma
    0
    Emad,

    We're here to help and NOT to do your home work.

    Instead of being shameless and throw your home work out in the forum you should try this first. In your previous reply you wrote  that none of the links could solve your problem, how could you?

    Try to learn the things up.

    Final words: 
    Definitely, you have the option to hire a guy and get your homework done!
    Don't waste our time.

    Cheers!
    0
  • Emad khan
    0
    i think u haven't gone through the provided links !if u got the answer in the provided link , tell me that link !! OPEN CHALLENGE FOR U !!! I am a DEVELOPER !!!! just stuck in this matter , that's why asking a question in this forum !
    0
  • Sunny  Sharma
    0
    My dear friend,

    I respect your profession and I didn't ever mean to blame that you cannot do this. What I meant to convey is: you should try doing it on your own and if you find trouble or come across errors that are unknown to you OR you're stuck, come up with INs & OUTs to the forum. We really are here and mean to help.

    If you ask us to do your code from A to Z, it's unethical. By giving you that link, I also meant to encourage you, to do Googling before you approach anybody or anywhere, not in this forum only!

    Try to understand the problem at your own first and let us know if any trouble is there.
    0
  • Emad khan
    0
    do me a favour , give me some hints
    0