Mark Brown

Hmm...

<November 2008>
SuMoTuWeThFrSa
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456


Navigation

Work Links

Subscriptions

Post Categories

Article Categories



Wednesday, July 16, 2003 - Posts

New Browser (to me) based on IE

Multi-page browser based on IE

http://www.irider.com/

posted Wednesday, July 16, 2003 9:32 PM by MarkBrown with 1 Comments

Microsoft warns of critical Windows flaw

http://news.com.com/2100-1009-1026420.html?part=dht&tag=ntop

posted Wednesday, July 16, 2003 9:26 PM by MarkBrown with 0 Comments

Bug in MS Data Application Block - Version 2 - FillDataset method

Beginning on Line 1840 of SqlHelper.cs there is this block of code:

for (int index=0; index < tableNames.Length; index++)
{
 ...
 dataAdapter.TableMappings.Add(tableName, tableNames[index]);
 tableName += (index + 1).ToString();
}

If I call the FillDataset method in this manner

SqlHelper.FillDataset(connection, "getContactsByPK", ds, new string[] 
 {"contact",  "contact_address", "contact_phone", "contact_email"}, nCID);

I'm supposed to get a dataset that looks like the following:

<?xml version="1.0" standalone="yes"?>
<NewDataSet>
<contact>
...
</contact>
<contact_address>
...
</contact_address>
<contact_phone>
...
</contact_phone>
<contact_email>
...
</contact_email>
</NewDataSet>

instead I get

<NewDataSet>
<contact>
...
</contact>
<contact_address>
...
</contact_address>
<Table2>
...
</Table2>
<Table3>
...
</Table3>
</NewDataSet>

Notice the Table2 and Table3 table names. The problem is with this line

tableName += (index + 1).ToString();

The problem is that the value of index is appened to the tableName string which doesn't provide the correct value when the tables are mapped.

I'm thinking this line should read something like:

tableName = "Table" + (index + 1).ToString();

Changing that line results in the correct behavior.

posted Wednesday, July 16, 2003 11:00 AM by MarkBrown with 4 Comments




Powered by Dot Net Junkies, by Telligent Systems