Archive for the ‘Shendy's Dev Corner’ Category

Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.

When working with a DataSet object, I got this error.
“Failed to enable constraints. One or more rows  contain values violating non-null, unique, or foreign-key  constraints.”

Talk about annoying – this took me the better part of an hour and half to figure out where this error was coming from. Quite descriptive if you ask me [...]

Leave a Comment

WordPress Permalinks ("Clean" URLs)

Since I started using WordPress in January/09, the whole permalinks thing has confused me – mainly because I didn’t spend the time to implement it correctly, but also partly because their documentation is confusing.
I dedicated some time today (ended up taking 10 minutes), to figure this out.
The default for WordPress URLs is http://www.iamshendy.ca?cat=10, or http://www.iamshendy.ca?p=12. [...]

Leave a Comment

Good Date Reference for ASP.NET (C#)

http://www.codeproject.com/KB/cs/String2DateTime.aspx

Leave a Comment

Great tool for testing XPath queries

Quick and Dirty – courtesty of Keith Peters @ bit101
http://www.bit-101.com/xpath/
Also – I’ve had the good fortune to see Keith speak at FITC the past couple of years. Cool dude.
Shendy.

Leave a Comment

ASP.NET Type <class> exists in both…

Receiving a rando-error similar to the one found on a post in the ASP.NET Forums
While the solution provided in the post didn’t help me specifically, it did point me in the right direction.
I also came across another potential solution here.
In addition to the solution provided at Mark Carroll’s blog. I had to republish the site [...]

Leave a Comment

Creating a CData node with ASP.NET

I was trying to create a CDATA section with an XML file, and had something like this:
var pinEntrySubmitBtnURL = copyXML.CreateElement(“pinEntry_submitBtn_URL”);
var pinEntrySubmitBtnURLContent = copyXML.CreateTextNode( “<![CDATA[hidden_pin.ashx]]>”);
pinEntrySubmitBtnURL.AppendChild(pinEntrySubmitBtnURLContent);
copyNodes.Add( pinEntrySubmitBtnURL );
All of my intended XML data was coming out as escaped XML:
&lt;![CDATA[hidden_pin.ashx]]&gt;
It took me a few minutes to track this down, but eventually Intellisense gave me the answer. Turns out [...]

Leave a Comment

CSS menus with Flash Content

I ran into a problem with a CSS menu (Suckerfish with Joomla) not appearing over top of flash content.
If you’re running into this problem just make sure the wmode property of your embed is set to "transparent".
With SWFObject:
so.addParam("wmode", "transparent");
Hope that helps,
Shendy.

Leave a Comment