Web Dev Best Practices
This has come up in various conversations recently and I was bored so I was googling for html best practices. I thought this article from Apple was quite good.
Forcing ASP .Net Validators and ValidationSummary to use CssClass
Here's something strange. If I create a validator using the following mark up: <asp:requiredfieldvalidator id="rfv_txt" runat="server" errormessage="Required" CssClass="errorText" /> and my css class is: errorText { color: purple; } My validator still renders with red text. Checking the markup, I see that ASP .Net has added an inline style attribute (style="color: red"). Obviously, inline styles take precedence over class ...
WPF Data Binding Not Refreshing When Bound to Static Object
And the WPF Data Binding wierdness/frustration continues ...I have a DataTemplate where DataType is defined. (In other words, WPF magic figures out when to use the template based on the type that is being bound). The Template includes a ComboBox which is bound to a static object in my UserControl class. The SelectedItem of the combobox is bound to a property of the DataTemplate's type (which, in this case, is a linq entity object).It looks ...
Type casting your User Control Class in ASP .Net 2.0+
I ran into a little bit of a strange issue today:I created a User Control that was being used multiple times on a page. It contained a few public methods and properties that allowed me to delegate loading and saving of the data to the control.Since I have a personal aversion to typing out the same thing for controls with different names, I wanted to just loop through the Controls, check for the type, cast, and call the method. Seems simple ...
Random Annoying Crap about WPF Data Binding & Linq to SQL
For a new project at work, we are using WPF and Linq to Sql. In some ways data binding in WPF is very sexy and suave. In other ways, it's aggravating -- there are things that are so easily done in WinForms and ASP .Net, like, say, re-binding data to a control after it's changed, that are bitch to figure out in WPF. At least for me they are. In theory, WPF can update itself whenever the source changes. In reality, it's not quite as ...