I have this code, that works in .Net Framework 1.0, but not on 1.1 where i
will run it on (Windows Server 2003):
foreach (DataTable mTable in ds.Tables)
foreach (DataRow mRow in mTable.Rows)
foreach (DataColumn mCol in mTable.Columns)
mRow[mCol] = mRow[mCol].ToString().Rep lace("[webApplicationR oot]",
webApplicationR oot);
It gives me the error:
System.FormatEx ception: Input string was not in a correct format. at
System.Number.P arseInt32(Strin g s, NumberStyles style, NumberFormatInf o
info) at System.String.S ystem.IConverti ble.ToInt32(IFo rmatProvider provider)
at System.Convert. ToInt32(Object value) at
System.Data.Com mon.Int32Storag e.Set(Int32 record, Object value) at
System.Data.Dat aColumn.set_Ite m(Int32 record, Object value)Couldn't store <>
in Parent Column. Expected type is Int32.
Please, can anyone help? I want to get this to work as fast as possible.
--
Regards,
Kristofer Gafvert
Reply only to newsgroup(s), if you by some reason must contact me, remember
to remove the "online" part of my address.
will run it on (Windows Server 2003):
foreach (DataTable mTable in ds.Tables)
foreach (DataRow mRow in mTable.Rows)
foreach (DataColumn mCol in mTable.Columns)
mRow[mCol] = mRow[mCol].ToString().Rep lace("[webApplicationR oot]",
webApplicationR oot);
It gives me the error:
System.FormatEx ception: Input string was not in a correct format. at
System.Number.P arseInt32(Strin g s, NumberStyles style, NumberFormatInf o
info) at System.String.S ystem.IConverti ble.ToInt32(IFo rmatProvider provider)
at System.Convert. ToInt32(Object value) at
System.Data.Com mon.Int32Storag e.Set(Int32 record, Object value) at
System.Data.Dat aColumn.set_Ite m(Int32 record, Object value)Couldn't store <>
in Parent Column. Expected type is Int32.
Please, can anyone help? I want to get this to work as fast as possible.
--
Regards,
Kristofer Gafvert
Reply only to newsgroup(s), if you by some reason must contact me, remember
to remove the "online" part of my address.