MBC Computer Solutions Ltd.

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Monday, 30 July 2007

Standards-based layout saved my day!

Posted on 17:12 by Unknown

I can always count on my clients for some last minute urgent changes - I’ve come to expect it - in fact, I even plan for it (similarly to how I tell all my late friends that things start an hour earlier than they actually do.) I had a change come up on Thursday afternoon that needed to be completed for Monday morning if possible. It involved a color scheme update, new menu items and a few additional design elements. My first reaction was “great, this is going to take a few days…” but after opening up the project to take a look at what actually needed to be changed I was pleasantly surprised – it didn’t look like I needed to make any markup changes (with the exception of changing a few words – Fundraising to Fundraise, that kind of stuff).


Four hours later (most of it spent in Photoshop slicing images and testing in various browsers), the update was complete. No HTML changes, just a bunch of new images and about 20 lines of CSS to change, amazing!


One thing that really saved me was having an extra wrappre-DIV around the main content.




This allowed me to easily add the circles that appear in the bottom right corner.



Without the wrapper-DIV I likely would have to either added it to the markup or gotten really creative with the CSS on the mainbody DIV. Not to say that it wouldn’t be possible to do, just that having it there (it wasn’t really necessary for the original design) made my life that much easier.


The final results:

Before:



After:



To top everything off, the homepage comes down in about 3.7kb of HTML markup which means it loads wicked-fast even on my Blackberry. And of course it gracefully renders to down-level clients without CSS support.

Read More
Posted in | No comments

Unable to stop or use COM+ component

Posted on 12:22 by Unknown
I just had a really bizzare issue on my home workstation. I was having trouble accessing a COM+ component that has always worked - the error was a standard issue Access Denied. All the permissions looked fine. I thought maybe it was having difficulty accessing a file or registry key so I pulled up Sysinternals ProcessExplorer and ProcessMonitor to take a look under the hood - and then I noticed something odd: The account it was running under was showing as . The only change I had made recently was to hide the account from the Windows login screen (HKLM\Software\Microsoft\Windows NT\Current version\Winlogon\SpecialAccounts\UserList) - sure enough, after I removed this entry it worked as expected.
Read More
Posted in | No comments

Thursday, 26 July 2007

Visual Studio 2008 Beta 2 is released

Posted on 15:04 by Unknown
Microsoft has just released Microsoft Visual Studio 2008 Beta 2 (in all flavors - standard, pro, team suite, and TFS). It can be downloaded here: http://msdn2.microsoft.com/en-us/vstudio/aa700831.aspx
Read More
Posted in | No comments

MBC is a Microsoft Certified Partner!

Posted on 11:05 by Unknown
MBC is now a Certified Member of the Microsoft Partner Program as of Tuesday July 3, 2007.

We have achieved our Networking Infrastructure Solutions Competency. By achieving this competency, MBC has proven that we have the ability to craft infrastructure solutions for small to midsize businesses that include Windows Server Solutions based on the Microsoft Windows Server 2003 or Windows 2000 Server operating system, or Microsoft Small Business Server 2000 and Windows Small Business Server 2003. These implementations may include crafting solutions that connect Windows-based servers, PC locations, and the Internet; installing a server farm; or building a Windows Small Business Server stand-alone solution that includes file/print capabilities.
Read More
Posted in | No comments

Wednesday, 25 July 2007

A simple way to handle data collection in email submission forms

Posted on 13:17 by Unknown
Frequently I get asked to create a simple web-form that collects a few peices of information and either stores it or sends it to someone as an email - pretty straight forward... Where it gets annoying is when someone asks for a change and you end up messing with a bulk of string concatenation code.

A really simple solution to this problem is to place all of your controls in a panel, and then loop through the panel's controls collection and create a NameValueCollection with all of the questions/answers - which can then easily be stored or emailed off.

The code looks something like:


NameValueCollection answers = new NameValueCollection();

answers.Add("Date", DateTime.Now.ToString());

foreach(Control c in panelName.Controls)
{
switch(c.GetType().Name)
{
case "TextBox":
answers.Add(c.ID, ((TextBox)c).Text.Trim());
break;
case "DropDownList":
answers.Add(c.ID, ((DropDownList)c).SelectedValue);
break;
case "RadioButton":
answers.Add(c.ID, ((RadioButton)c).Checked.ToString());
break;
case "RadioButtonList":
answers.Add(c.ID, ((RadioButtonList)c).SelectedValue);
break;
}
}

FormMailer.SendResponses(answers);
Read More
Posted in | No comments

Tuesday, 24 July 2007

New version of Nikhil Kothari's Web Development Helper

Posted on 15:34 by Unknown
If you haven't already used Nikhil Kothari's Web Development Helper IE plug-in for debugging and tracing web applications, it’s an indispensible app to have in your toolbox. It has been further updated to support class browsing of classes registered within MS AJAX.

You can read the related blog entry at http://www.nikhilk.net/Entry.aspx?id=168 or download it directly from http://projects.nikhilk.net/Projects/WebDevHelper.aspx
Read More
Posted in | No comments

Friday, 20 July 2007

JavaScript Support in Visual Studio 2008 looks like its shaping up

Posted on 06:48 by Unknown
Two of the features I'm looking forward to the most in Visual Studio 2008/Orcas is JavaScript Intelli-sense and debugging support.

Scott Guthrie has a few posts worth checking out by the most recent shows off some of the debugging features - http://weblogs.asp.net/scottgu/archive/2007/07/19/vs-2008-javascript-debugging.aspx
Read More
Posted in | No comments
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • How to change the temperature scale on a Honeywell T6575 Thermostat
    [The complete documentation can be found at http://customer.honeywell.ca/techlit/pdf/95c-00000s/95c-10897.pdf ]   This was bugging me fo...
  • Why does iTunes setup need to close Outlook?!
    Everytime I update iTunes I remember why I left it so long - the install process is quite annoying! Can someone please explain to me why it...
  • Dell 2009W's Finally Arrive
    I had previously   written about the new Dell 2208WFP 22" Wide Screen LCD's that I had purchased and immediately sent back due to ...
  • Mac OSX 10.5.2 Freezing Intermittently
    I've been having an issue with my MacBook (you know, that computer I hide under my desk most of the time) where intermittently, the UI w...
  • Recursively finding controls - where to start?
    I love hearing about bugs and problems in components I have authored.  Most people hate hearing about bugs (I assume because they like to th...
  • ScottGu’s Color Scheme for Visual Studio 2010
    ScottGu was nice enough to provide the world with his awesome Visual Studio 2008 color scheme.  I’ve been using this for many years now an...
  • Windows Search 4.0 Released .....and searching finally works!
    I've been dealing with Outlook 2007's search problems since installing it way back then.  Most frequently, I'd search a keyword;...
  • How to query your BES database for a list of users
    I was asked to generate a list of all our BES users, including their name, phone number, PIN, IMEI and device number.  Sure, I could have co...
  • C# – Converting IP’s to Numbers and Numbers to IP’s in 2 lines of code
    I don’t know why everywhere I searched had such complex implementation of this, but converting from a dotted IP to a number (integer) and ba...
  • Using SQL PIVOT with non-aggregate column
    I was banging my head on my desk for a while over this one, hopefully this will save you the pain… I wanted to use SQL 2005’s PIVOT functi...

Blog Archive

  • ▼  2012 (1)
    • ▼  February (1)
      • An Experiment with Google Services & Page Speed
  • ►  2010 (1)
    • ►  April (1)
  • ►  2009 (7)
    • ►  December (1)
    • ►  November (1)
    • ►  October (1)
    • ►  July (1)
    • ►  April (2)
    • ►  February (1)
  • ►  2008 (36)
    • ►  November (3)
    • ►  October (2)
    • ►  September (1)
    • ►  August (1)
    • ►  July (2)
    • ►  June (6)
    • ►  May (4)
    • ►  April (1)
    • ►  March (4)
    • ►  February (7)
    • ►  January (5)
  • ►  2007 (35)
    • ►  December (1)
    • ►  November (9)
    • ►  October (3)
    • ►  September (6)
    • ►  August (7)
    • ►  July (9)
  • ►  2006 (3)
    • ►  May (3)
Powered by Blogger.

About Me

Unknown
View my complete profile