Geeks With Blogs
Bunch's Blog One day I'll have a catchy subtitle, one day November 2009 Entries
ScriptManager is Ambiguous
This trick might work if you have an application that has been moved from the 2.0 framework to 3.5. This happened to me recently and I had tried removing the Web.Extensions reference and adding it back in, deleting old pages that had the older ScriptManager on them and manually removing then adding back the Web.Extensions sections in the web.config file. Nothing worked so I compared the web.config files from the problem project to one that was created from scratch targeting the 3.5 framework. I saw ......

Posted On Monday, November 16, 2009 6:32 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

Finding Duplicates in a Table
Here is an easy way to find duplicate data in a table. This simple example would return any userNames that appear twice or more in the table. SELECT userName, COUNT(userName) as UserDup FROM tblUsers GROUP BY userName HAVING Count(userName) >= 2 I find this handy to use when users need to know how many times a certain item appears but there is no way to sort that data in their application or there is no report written for them to use. It is also a useful check when migrating data over from an ......

Posted On Friday, November 6, 2009 1:25 AM

Copyright © Bunch | Powered by: