Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
3.33/5 (3 votes)
See more:
When I click on the asp textbox, I'm getting a border drawn around it, Which is making my design not that catchy so I wanna disable the border on the click of the textbox.
Is this possible?
Posted

hi, Using css you can do it.
CSS
.myTextBox:focus
{
  border:none;
}

ASP.NET
<asp:textbox id="txtTest" cssclass="myTextBox" runat="Server" xmlns:asp="#unknown" />
 
Share this answer
 
use

C#
textarea:focus, input:focus{
    outline: none;
}
 
Share this answer
 

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