Thursday, April 21, 2005

A really handy tip...

I can't remember where I heard or read it, but I remembered a handy tip for when you're having trouble working with datasets.

I was having a mare with a dataset earlier on today, and I thought that something was up with my columns, but I remembered this single method call (luckily!) just before I embarked on a woeful quest of 'for each c as DataColumn in MyDataSet.Tables(0)' and stuff like that.

Here it is:
MyDataset.WriteXML(Response.OutputStream)
Very handy.

Still didn't sort out the prblem, though. The dataset was exactly as I expected. It was just one of the assemblies I was working with that was playing up. Still, we live and learn, do we not?

No comments: