[Mono-list] Problem with asp.net OdbcDataAdapter or DataSet.
beniniva@csr.unibo.it
beniniva@csr.unibo.it
Tue, 24 Aug 2004 11:01:51 +0200
This message is in MIME format.
---MOQ10933381115dc15107ceea34833fb4879d3445aa62
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Hi,
I've an asp.net web application that shows, through an odbc connection to a
mysql database, the content of the table chosen from a DropDownList.
The code go well on windows but on linux with mono 1.01 not all the tables are
shown correctly.
I've also tried to run a c# example that makes the same thing and it works
well....so I think that is not a problem of mysql or odbc connection, but
rather it may be a problem of odbcDataAdapter or Data set....
Is it true?
Could anybody help me?
asp.net web application: WebForm1VisuaTabelle.aspx,
WebForm1VisuaTabelle.aspx.cs
c# example: ProvaVisuaTabella.cs
Thanks a lot,
Valentina.
---MOQ10933381115dc15107ceea34833fb4879d3445aa62
Content-Type: application/octet-stream; name="WebForm1VisuaTabelle.aspx"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="WebForm1VisuaTabelle.aspx"
PCVAIFBhZ2UgbGFuZ3VhZ2U9ImMjIiBDb2RlYmVoaW5kPSJXZWJGb3JtMS5hc3B4LmNzIiBBdXRv
RXZlbnRXaXJldXA9ImZhbHNlIiBJbmhlcml0cz0iVmlzdWFUYWJlbGxlLldlYkZvcm0xIiAlPg0K
PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv
L0VOIiA+DQo8IURPQ1RZUEUgSFRNTCBQVUJMSUMgIi0vL1czQy8vRFREIEhUTUwgNC4wIFRyYW5z
aXRpb25hbC8vRU4iID4NCjxIVE1MPg0KCTxIRUFEPg0KCQk8dGl0bGU+VmlzdWFsaXp6YVRhYmVs
bGU8L3RpdGxlPg0KCQk8bWV0YSBuYW1lPSJHRU5FUkFUT1IiIENvbnRlbnQ9Ik1pY3Jvc29mdCBW
aXN1YWwgU3R1ZGlvIC5ORVQgNy4xIj4NCgkJPG1ldG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9hZCk7DQoNCgkJfQ0KCQkjZW5kcmVnaW9uDQoNCgkJcHJpdmF0ZSB2b2lkIEJ1
dHRvblJpY2VyY2FfQ2xpY2sob2JqZWN0IHNlbmRlciwgU3lzdGVtLkV2ZW50QXJncyBlKQ0KCQl7
DQoJCQlMYWJlbDIuVGV4dCA9ICJUYWJlbGxhICIrIFRhYmVsbGE7DQoJCQkvL09kYmNDb25uZWN0
aW9uIGNvbm4gPSBuZXcgT2RiY0Nvbm5lY3Rpb24oIkRSSVZFUj17TXlTUUwgT0RCQyAzLjUxIERy
aXZlcn07IisiU0VSVkVSPWxvY2FsaG9zdDsiKyJEQVRBQkFTRT10ZG1pbzsiKyJVSUQ9cm9vdDsi
KyJQQVNTV09SRD1yb290cHdkOyIpOw0KCQkJT2RiY0Nvbm5lY3Rpb24gY29ubiA9IG5ldyBPZGJj
Q29ubmVjdGlvbiAoIkRSSVZFUj1NeVNRTDtTRVJWRVI9bG9jYWxob3N0O0RBVEFCQVNFPXRkbWlv
O1VJRD1yb290O1BBU1NXT1JEPXJvb3Rwd2Q7Iik7DQoJCQlPZGJjRGF0YUFkYXB0ZXIgZGFUYWJl
bGxhID0gbmV3IE9kYmNEYXRhQWRhcHRlcigic2VsZWN0ICogZnJvbSAiICtUYWJlbGxhICsgIiIs
IGNvbm4pOw0KCQkJRGF0YVNldCBEcyA9IG5ldyBEYXRhU2V0KCk7DQoJCQljb25uLk9wZW4oKTsN
CgkJCWRhVGFiZWxsYS5GaWxsKERzLCBUYWJlbGxhKTsNCgkJCWNvbm4uQ2xvc2UoKTsNCgkJCURh
dGFHcmlkMS5EYXRhU291cmNlPSBEczsNCgkJCURhdGFHcmlkMS5EYXRhQmluZCgpOw0KCQl9DQoJ
fQ0KfQ0K
---MOQ10933381115dc15107ceea34833fb4879d3445aa62
Content-Type: text/x-csharp; name="ProvaVisuaTabella.cs"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ProvaVisuaTabella.cs"
dXNpbmcgU3lzdGVt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