Click here to Skip to main content
15,887,746 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: [vb.net] Minimize Prompt Pin
Thomas Daniels14-Jan-13 7:08
mentorThomas Daniels14-Jan-13 7:08 
GeneralRe: [vb.net] Minimize Prompt Pin
barabba200515-Jan-13 0:42
barabba200515-Jan-13 0:42 
GeneralRe: [vb.net] Minimize Prompt Pin
Dave Kreskowiak15-Jan-13 4:22
mveDave Kreskowiak15-Jan-13 4:22 
AnswerRe: [vb.net] Minimize Prompt Pin
Alan N15-Jan-13 6:01
Alan N15-Jan-13 6:01 
Questionread an excel file Pin
xnaLearner14-Jan-13 4:38
xnaLearner14-Jan-13 4:38 
AnswerRe: read an excel file Pin
0bx15-Jan-13 11:55
0bx15-Jan-13 11:55 
AnswerRe: read an excel file Pin
Dave Kreskowiak15-Jan-13 19:42
mveDave Kreskowiak15-Jan-13 19:42 
Questionncorrect work of Dataset deserialized from XML Pin
senglory13-Jan-13 2:50
senglory13-Jan-13 2:50 
C#
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 17:19
Brady Kelly12-Jan-13 17:19 
Question\UIAutomationProvider damaged and can't read Pin
AlterAkarin10-Jan-13 15:07
AlterAkarin10-Jan-13 15:07 
AnswerRe: \UIAutomationProvider damaged and can't read Pin
Sandeep Mewara10-Jan-13 17:31
mveSandeep Mewara10-Jan-13 17:31 
QuestionHow to Bind table data to chart? Pin
Deenuji9-Jan-13 21:46
Deenuji9-Jan-13 21:46 
Questionpop up after certain time limit Pin
fox079-Jan-13 15:15
fox079-Jan-13 15:15 
AnswerRe: pop up after certain time limit Pin
Sandeep Mewara9-Jan-13 17:47
mveSandeep Mewara9-Jan-13 17:47 
JokeRe: pop up after certain time limit Pin
Jibesh10-Jan-13 17:11
professionalJibesh10-Jan-13 17:11 
QuestionDeleting data from Master and Detail tables using Entity Framework Pin
indian1439-Jan-13 8:48
indian1439-Jan-13 8:48 
AnswerRe: Deleting data from Master and Detail tables using Entity Framework Pin
Dave Kreskowiak10-Jan-13 2:03
mveDave Kreskowiak10-Jan-13 2:03 
AnswerRe: Deleting data from Master and Detail tables using Entity Framework Pin
jschell10-Jan-13 13:57
jschell10-Jan-13 13:57 
Question[VB.NET 2008] How to put an image in a button Pin
steve_94966138-Jan-13 22:54
professionalsteve_94966138-Jan-13 22:54 
AnswerRe: [VB.NET 2008] How to put an image in a button Pin
Eddy Vluggen9-Jan-13 1:22
professionalEddy Vluggen9-Jan-13 1:22 
GeneralRe: [VB.NET 2008] How to put an image in a button Pin
steve_94966139-Jan-13 21:40
professionalsteve_94966139-Jan-13 21:40 
GeneralRe: [VB.NET 2008] How to put an image in a button Pin
Eddy Vluggen9-Jan-13 22:57
professionalEddy Vluggen9-Jan-13 22:57 
GeneralRe: [VB.NET 2008] How to put an image in a button Pin
halabella13-Jan-13 4:17
halabella13-Jan-13 4:17 
GeneralRe: [VB.NET 2008] How to put an image in a button Pin
steve_949661313-Jan-13 22:46
professionalsteve_949661313-Jan-13 22:46 
AnswerRe: [VB.NET 2008] How to put an image in a button Pin
s32750499-Jan-13 7:41
s32750499-Jan-13 7:41 

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

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