Thursday, March 22, 2012

textbox

how can i select textbox ?
i have a dictionay . users search the words and how can i select textbox for next search .
for ex .
i search for Hello ====> Greetting ,......
when the search finished the textbox test going to blue ==> Hello
and when user click on textbox the textbox is going to empty


Could you please clarify what you are trying to do more ? I was unable to understand what you are trying to do !!
regards

Hi. I've read your message several times. Maybe its due to the numerous typos but each time, I think you mean something else: changing the font style of a word found inside of the text in a textbox, setting focus and selecting the entire textbox, changing the style of the entire textbox.

Please restate the problem and take the time to reread it before posting so that you know its clear.


sorry for confusing .
i want to when user searched a thing like hello and when the queryexecute the textbox is going to highlight and when he want to insert anew search the textbox going to empty .

after executing query , you must changeforecolor property of textbox to any color you want. In order to emptytextbox when user click on textbox , you can use javascript, addingjavascript to asp textbox control by usingattributes property of textbox control in page_load event:
txtwords.Attributes.Add("onClick","this.value=''");
Hope this will helping you solving your problem .

0 comments:

Post a Comment