Posts Tagged ‘ASP.NET’

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