Writings & Photography of Derek Dysart, some dude you’ve never heard of.

Random header image... Refresh for more!

Painting – Project 365/54

Painting - Project 365/54

click image to view on Flickr

Painting on his eisle. [Read more →]

February 23, 2010   No Comments

Lens – Project 365/53

Lens - Project 365/53

click image to view on Flickr

This is my first lens – a Canon EF-S17-85mm f/4-5.6 which was the kit lens that came with my 20D. I’m probably going to be listing it on ebay soon since I never use it any more. [Read more →]

February 22, 2010   No Comments

Father – Project 365/52

Father - Project 365/52

click image to view on Flickr

This is my dad, James Dysart. My parents were in town for the weekend and my dad needed a headshot for some promotional material – he is a real estate agent in the Minneapolis area. [Read more →]

February 21, 2010   No Comments

Hurricanes – Project 365/51

Hurricanes - Project 365/51

click image to view on Flickr

My son’s indoor soccer team had its championship game for session 2 today and preserved its undeafted record. We wanted to get a team picture, so I brought my camera and a strobe to the game to get this before the game started [Read more →]

February 20, 2010   No Comments

Spring in coming – Project 365/50

Spring in coming - Project 365/50

click image to view on Flickr

Pitchers and catchers reported for spring training today, and the roof at Miller Park was open a bit. Not too long and it will be warm out again! [Read more →]

February 19, 2010   No Comments

Autobank – Project 365/49

Autobank - Project 365/49

click image to view on Flickr

Went through the drive through bank on the way into work this morning and snapped this shot of the pneumatic tube [Read more →]

February 18, 2010   No Comments

Styling ASP.NET Validation Controls

A little break from all the photography for a bit. Since I spent the better part of the morning trying to get around this, I figured I’d document it for future developers.

If you are using the intrinsic ASP.NET Validation controls on a Web Forms project, you’ll notice they always default to being red. While this is all fine and good since red for warnings makes sense.  What if you (or your design team) want them to be a different color?  If you look at the rendereded HTML, you’ll see it makes the text red by using inline CSS:

<span id=”ctl09_uxValidatorPostalCode” title=”Required Field” class=”scfRequired” style=”color:Red;”>*</span>

Where this becomes an issue is if you try to style this via an external stylesheet (generally a good practice):

.scfRequired {
color: #005598;
}

Since there is a color specified in the inline CSS, it will take precendent.  We could add !important to our external stylesheet, but that sort of feels like a hack.  What we really want to do is get ASP.NET to stop adding the inline style. Turns out this isn’t that hard to do.  Just add a blank ForeColor attribute to your validator:

<asp:RequiredFieldValidator ID=”uxValidatorPostalCode”
CssClass=”scfRequired”
ToolTip=”Required Field”
Text=”*”
ForeColor=”"
ControlToValidate=”uxPostalCode”
runat=”server”
ErrorMessage=”Please Enter your ZIP/Postal Code”></asp:RequiredFieldValidator>

No inline CSS colors will be output and your external stylesheet rules will apply. I’m sure this isn’t news to many, but none of the first few pages of search results seemed to point this out. This applies for all of the validation controls including the ValidationSummary control which seem to have a predisposition to red.

February 17, 2010   No Comments

101 – Project 365/48

101 - Project 365/48

click image to view on Flickr

This is the control center for the St. paul Ave bridge over the Milwaukee River, which I think has an address of 101 W St. Paul Ave. [Read more →]

February 17, 2010   No Comments

Call Box – Project 365/47

Call Box - Project 365/47

click image to view on Flickr

There are a few of these left around town. I wonder if they are still active and if the Milwaukee Police Department Officers still cary keys to open them, what with portable radios being so prevelant now. [Read more →]

February 16, 2010   No Comments

Ladder Stairs – Project 365/46

Ladder Stairs - Project 365/46

click image to view on Flickr

This is in the back stairwell of the building I work in and are the stairs to get onto the roof. They are pretty interesting to look at, something I failed to capture in this shot, unfortunately. [Read more →]

February 15, 2010   2 Comments