Click here to Skip to main content
15,893,814 members
Articles / Web Development / ASP.NET

Change Textbox/Input background color on focus

Rate me:
Please Sign up or sign in to vote.
4.23/5 (9 votes)
23 Mar 2008CPOL2 min read 127.6K   1.1K   30  
Change the background color of asp.net textbox and listbox when selected.
<?xml version="1.0"?>
<!-- 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration>
	<appSettings/>
	<connectionStrings/>
	<system.web>
		<!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.
        -->
		<compilation debug="true"/>
		<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
		<authentication mode="Windows"/>
		<!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
	</system.web>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder AuraTech
Singapore Singapore
Is the founder and chief architect of AuraTech, a Singapore based software consulting firm with presence in Singapore and Chicago. AuraTech(www.consultaura.com) focuses on custom software development using .net technologies(ASP.net, C#, VB, SQL Server), microsoft sharepoint and dynamics crm customizations.

Kunal got his bachelors and masters degrees in Computer Science from the University of Illinois - Urbana Champaign.

Comments and Discussions