Click here to Skip to main content
11,484,402 members (64,871 online)

.NET Framework

 
AnswerRe: [vb.net] Minimize Prompt Pin
ProgramFOX14-Jan-13 8:08
member ProgramFOX14-Jan-13 8:08 
GeneralRe: [vb.net] Minimize Prompt Pin
barabba200515-Jan-13 1:42
memberbarabba200515-Jan-13 1:42 
GeneralRe: [vb.net] Minimize Prompt Pin
Dave Kreskowiak15-Jan-13 5:22
mvpDave Kreskowiak15-Jan-13 5:22 
AnswerRe: [vb.net] Minimize Prompt Pin
Alan N15-Jan-13 7:01
memberAlan N15-Jan-13 7:01 
Questionread an excel file Pin
xnaLearner14-Jan-13 5:38
memberxnaLearner14-Jan-13 5:38 
AnswerRe: read an excel file Pin
0bx15-Jan-13 12:55
member0bx15-Jan-13 12:55 
AnswerRe: read an excel file Pin
Dave Kreskowiak15-Jan-13 20:42
mvpDave Kreskowiak15-Jan-13 20:42 
Questionncorrect work of Dataset deserialized from XML Pin
senglory13-Jan-13 3:50
membersenglory13-Jan-13 3:50 
string stmp = "\n<rs:data ItemCount=\"6\" xmlns:rs=\"urn:schemas-microsoft-com:rowset\">\n   <z:row _x041a__x043b__x0438__x0435__x043d__x0442___x043a__x043e__x0434_=\"16440042770нс\" _x0424__x0438__x043b__x0438__x0430__x043b___x041a__x043e__x0434_=\"20706\" _x041a__x043e__x0434_=\"3049\" _x041d__x0430__x0437__x0432__x0430__x043d__x0438__x0435_=\"Татнефть УÐ*С\" BdcIdentity=\"__bg01003300030043009300\" xmlns:z=\"#RowsetSchema\" />\n   <z:row _x041a__x043b__x0438__x0435__x043d__x0442___x043a__x043e__x0434_=\"16440042770нс\" _x0424__x0438__x043b__x0438__x0430__x043b___x041a__x043e__x0434_=\"20706\" _x041a__x043e__x0434_=\"5328\" _x041d__x0430__x0437__x0432__x0430__x043d__x0438__x0435_=\"Ð*озница\" BdcIdentity=\"__bg01005300330023008300\" xmlns:z=\"#RowsetSchema\" />\n   <z:row _x041a__x043b__x0438__x0435__x043d__x0442___x043a__x043e__x0434_=\"16440042770нс\" _x0424__x0438__x043b__x0438__x0430__x043b___x041a__x043e__x0434_=\"20706\" _x041a__x043e__x0434_=\"5353\" _x041d__x0430__x0437__x0432__x0430__x043d__x0438__x0435_=\"Медуница\" BdcIdentity=\"__bg01005300330053003300\" xmlns:z=\"#RowsetSchema\" />\n   <z:row _x041a__x043b__x0438__x0435__x043d__x0442___x043a__x043e__x0434_=\"16440042770нс\" _x0424__x0438__x043b__x0438__x0430__x043b___x041a__x043e__x0434_=\"20706\" _x041a__x043e__x0434_=\"5357\" _x041d__x0430__x0437__x0432__x0430__x043d__x0438__x0435_=\"Оптовик\" BdcIdentity=\"__bg01005300330053007300\" xmlns:z=\"#RowsetSchema\" />\n   <z:row _x041a__x043b__x0438__x0435__x043d__x0442___x043a__x043e__x0434_=\"16440042770нс\" _x0424__x0438__x043b__x0438__x0430__x043b___x041a__x043e__x0434_=\"20706\" _x041a__x043e__x0434_=\"8372\" _x041d__x0430__x0437__x0432__x0430__x043d__x0438__x0435_=\"Артемьев ИП\" BdcIdentity=\"__bg01008300330073002300\" xmlns:z=\"#RowsetSchema\" />\n   <z:row _x041a__x043b__x0438__x0435__x043d__x0442___x043a__x043e__x0434_=\"16440042770нс\" _x0424__x0438__x043b__x0438__x0430__x043b___x041a__x043e__x0434_=\"20706\" _x041a__x043e__x0434_=\"8620\" _x041d__x0430__x0437__x0432__x0430__x043d__x0438__x0435_=\"Шифа\" BdcIdentity=\"__bg01008300630023000300\" xmlns:z=\"#RowsetSchema\" />\n</rs:data>\n";
            XmlDocument xd = new XmlDocument();
            xd.LoadXml(stmp);
 
            DataSet dsQuery = new DataSet();
            var node = xd.DocumentElement as XmlNode;
            XmlReader reader1 = new XmlNodeReader(node);
            dsQuery.ReadXml(reader1);
 
            var v1 = dsQuery.Tables["row"].Rows[4]["_x041a__x043e__x0434_"];
            var v2 = dsQuery.Tables["row"].Rows[4][dsQuery.Tables["row"].Columns[2].ColumnName];


The line with v1 throws an exception:

Column '_x041a__x043e__x0434_' does not belong to table row.


The line with v2 throws no exception, however it returns an empty value instead of expected integer value. I wonder why it happens and how to force dataset to work with my XML correctly?
QuestionIs there any way to generate a DB from an EDMX model without all the table names being pluralised? Pin
Brady Kelly12-Jan-13 18:19
memberBrady Kelly12-Jan-13 18:19 
Question\UIAutomationProvider damaged and can't read Pin
AlterAkarin10-Jan-13 16:07
memberAlterAkarin10-Jan-13 16:07 
AnswerRe: \UIAutomationProvider damaged and can't read Pin
Sandeep Mewara10-Jan-13 18:31
mvpSandeep Mewara10-Jan-13 18:31 
QuestionHow to Bind table data to chart? Pin
Deenuji9-Jan-13 22:46
groupDeenuji9-Jan-13 22:46 
Questionpop up after certain time limit Pin
fox079-Jan-13 16:15
memberfox079-Jan-13 16:15 
AnswerRe: pop up after certain time limit Pin
Sandeep Mewara9-Jan-13 18:47
mvpSandeep Mewara9-Jan-13 18:47 
JokeRe: pop up after certain time limit Pin
jibesh10-Jan-13 18:11
memberjibesh10-Jan-13 18:11 
QuestionDeleting data from Master and Detail tables using Entity Framework Pin
indian1439-Jan-13 9:48
memberindian1439-Jan-13 9:48 
AnswerRe: Deleting data from Master and Detail tables using Entity Framework Pin
Dave Kreskowiak10-Jan-13 3:03
mvpDave Kreskowiak10-Jan-13 3:03 
AnswerRe: Deleting data from Master and Detail tables using Entity Framework Pin
jschell10-Jan-13 14:57
memberjschell10-Jan-13 14:57 
Question[VB.NET 2008] How to put an image in a button Pin
steve_94966138-Jan-13 23:54
membersteve_94966138-Jan-13 23:54 
AnswerRe: [VB.NET 2008] How to put an image in a button Pin
Eddy Vluggen9-Jan-13 2:22
mvpEddy Vluggen9-Jan-13 2:22 
GeneralRe: [VB.NET 2008] How to put an image in a button Pin
steve_94966139-Jan-13 22:40
membersteve_94966139-Jan-13 22:40 
GeneralRe: [VB.NET 2008] How to put an image in a button Pin
Eddy Vluggen9-Jan-13 23:57
mvpEddy Vluggen9-Jan-13 23:57 
GeneralRe: [VB.NET 2008] How to put an image in a button Pin
halabella13-Jan-13 5:17
memberhalabella13-Jan-13 5:17 
GeneralRe: [VB.NET 2008] How to put an image in a button Pin
steve_949661313-Jan-13 23:46
membersteve_949661313-Jan-13 23:46 
AnswerRe: [VB.NET 2008] How to put an image in a button Pin
s32750499-Jan-13 8:41
members32750499-Jan-13 8:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 25 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid