Read XML from a gridview field and display it in a datatable

1

Visual Studio 2012 - Web Application.

I want to go through the gridview, when I get to the "REQUESTCONTENT" field, I'll go through it and insert the values of that field in a datatable.

This is the gridview:

And this is the xml in the "REQUESTCONTENT" field:

<spRequest>
    <Action>
        <No>1</No>
        <Tx>12345678</Tx>
        <ActionName>Add</ActionName>
        <ActionParameter>
            <Key>ItemId</Key>
            <Value>1</Value>
            </ActionParameter>
        <ActionParameter>
            <Key>Item</Key>
            <Value>Printer</Value>
        </ActionParameter>
        <ActionParameter>
            <Key>Cards</Key>
            <Value>1</Value>
        </ActionParameter>
        <ActionParameter>
            <Key>DateEnd</Key>
            <Value>201812310000</Value>
        </ActionParameter>
        <ActionParameter>
            <Key>DateStart</Key>
            <Value>201801010000</Value>
        </ActionParameter>
    </Action>
</spRequest>

This should be the result in another gridview:

    
asked by Christian 03.10.2018 в 19:28
source

0 answers