Geeks With Blogs
Bunch's Blog One day I'll have a catchy subtitle, one day CSS There are 7 entries for the tag CSS
Access Master Page Controls II
Here is another way to access master page controls. This way has a bit less coding then my previous post on the subject. The scenario would be that you have a master page with a few navigation buttons at the top for users to navigate the app. After a button is clicked the corresponding aspx page would load in the ContentPlaceHolder. To make it easier for the users to see what page they are on I wanted the clicked navigation button to change color. This would be a quick visual for the user and is ......

Posted On Wednesday, March 16, 2011 9:09 AM

Apply CSS to all Textboxes
Here is a really quick CSS item to apply styles to different types of textboxes in an ASP.Net application. A plain old vanilla asp:textbox control will show as an Input if you view the source of the page. To set the styles of all those controls from a css file you can add this to your css: input[type=”text”] { font-size: 8pt; font-family: Arial; } Then you do not need to add the CssClass property to the textboxes in the aspx file. The input section of the css will be applied automatically. This saves ......

Posted On Friday, November 13, 2009 6:21 AM

HTML Tables Side by Side II
I had posted this last month and saw a comment posted quickly that you can use CSS as well. A way to use CSS is listed below. <table style="float: left; width: 300px; margin-left: 15px"> </table> <table style="float: right; width: 500px; margin-right: 15px" > </table> Technorati Tags: HTML,ASP.Net ......

Posted On Wednesday, September 30, 2009 1:44 AM

Calendar Extender Display Issue – Update Panel Weirdness
This issue started for me after I added an Update Panel to the aspx page. If the calendar extender is showing up weird, like with no background and is displayed no where near where it should be this could fix your problem. Take the original css from the control toolkit (AjaxControlToolkit\AjaxCon... and copy it into your css file in the application. No css modification is needed and you do not need to set the CssClass property to the control on the aspx page. Technorati ......

Posted On Monday, May 18, 2009 3:07 PM

Calendar Extender Display – Easier Workaround
This post goes along with this previous post on calendar extender display issues. However the formatting fix I used was much less involved than before. Again I had a GridView with some text boxes for dates that I added the CalendarExtender to. And just like before the GridView had some CSS specific to it’s td which involved padding and text alignment. I added all the CalendarExtender styles to my css file and the extender worked fine but did not look quite right. The current date listing was quite ......

Posted On Friday, May 15, 2009 10:27 AM

Calendar Extender Display Issues
I was recently working on a GridView and needed to add a calendar for two of the columns while in edit mode. I added the AJAX CalendarExtender and it returned the selected date with no issues. <EditItemTemplate > <asp:TextBox ID="txtDate1" runat="server" Text='<%# BIND("Date1", "{0: MM/dd/yyyy}") %>'></asp:TextBox> <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate1" PopupPosition="Right" CssClass="caltheme" > </cc1:CalendarExtender> ......

Posted On Friday, March 6, 2009 3:49 PM

CSS, Themes, Master Pages and Ajax Tabs
This was done using ASP.NET 3.5 in VS 2008. I had an application that I was using an Ajax TabContainer and TabPanels. The tabs looked great but I had wanted to change the background color of the tab body to a standard color my company uses. I took the default /*XP Theme*/ styles from Tabs.css and put them in my own CSS file. On the TabContainer I set the CssClass=”tabBackground” (tabBackground was the name I gave the class in my CSS file). I changed the background-color in .ajax_tab_body and everything ......

Posted On Monday, April 21, 2008 2:58 PM

Copyright © Bunch | Powered by: