Click here to Skip to main content
15,904,024 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi,

I have a textbox in panel with Multiline textmode. When the page comes that textbox is not visible, if i press Tab button then the focus came to text box and then if i start writing then that got highlighted. But i want that textarea box to be shown/highlighted all the time.

Thanks in Advance...
Posted
Updated 26-Oct-10 7:16am
v2
Comments
Tarun.K.S 26-Oct-10 13:20pm    
not visible! well can you show your code? by the way you can set the focus using textbox1.focus()
Member 7217874 26-Oct-10 13:49pm    
i have tried but after that when i start writing then only it is highlighting.
Abhijit Jana 26-Oct-10 14:24pm    
Which panel are you using ? Is it normal ASP.NET panel ?
Bikash Shrestha From Nepal 26-Oct-10 14:26pm    
Firstly, paste your code so that we will be able to know what went wrong
Member 7217874 26-Oct-10 14:40pm    
it is asp panel

1 solution

window.onload=function(){document.getElementById('TextBox').focus()}
 
Share this answer
 
Comments
Member 7217874 29-Oct-10 10:55am    
focus i set. but textbox boundries are not visible.

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