C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






Preventing Unwanted background colouring of textboxes by google toolbar


Posted Date: 02 Sep 2008    Resource Type: Code Snippets    Category: ASP.NET WebForms

Posted By: Jayesh       Member Level: Gold
Rating:     Points: 5



You might have noticed the annoying yellow colour in the background of some text boxes in your webforms when they are seen in a browser with google toolbar enabled.
I had this problem and spent a lot of time in finding a solution for it.
It is possible to disable it from the settings menu of google tool bar, at the client side only. ie; every client browsing your page has to disable the background colouring from the settings menu of google tool bar. So that is obviously not the solution.

If you want to strictly avoid such change in style settings, you can simply add '!important' to the style sheet and can get rid of the problem very easily.



Now your code for a textbox will look something like,

<asp:TextBox ID="TextBox1" runat="server" Style="z-index: 100; left: 160px; position: absolute; top: 135px; background-color: #ffffff!important"></asp:TextBox>


The stylesheet rule here is '!important'. So it will not be overridden by google tool bar any more.




if you have any doubts on this please mail to me
jayeshkolpurath@yahoo.co.in

Thanks
-Jayesh




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Yellow colour of text boxes  .  Yellow colour  .  Textbox background color  .  Remove yellow colouring  .  Background colour google toolbar  .  Auto fill background colour  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Saving file retreived from Fileupload on server
Previous Resource: Client Side Validation of New User Name Using Custom Validator.
Return to Discussion Resource Index
Post New Resource
Category: ASP.NET WebForms


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

SPOC

Contact Us    Privacy Policy    Terms Of Use