1
Answer

Conversion of azure table to xml file

Shital Mandlecha

Shital Mandlecha

15y
4.5k
1

Hello! Everybody,
            I am doing a project in which i need to convert the table data to xml file. Actually the flow is : user enters his personal details, then the data from other form is captured and stored in the table. Now the user ask for the xml file of all the data entered by him. As soon as the button is clicked, the queue gets the key data, which it matches with entries in the table. There after the data is fetched and the workerrole is given the job to create xml file. We have reached till the part of table creation but would like to get some help that how can we create xml file for each entries in the table on asked.
           Waiting for reply.....
                                                              Thanks and regards,
                                                               Shital.
Answers (1)
0
ramya g

ramya g

NA 5 0 15y

I think i am not being very clear. I have a drop down list and if i select a item and click the button, it should add a row to the exiting table. Next time when i select one more item from the drop down list and click the button, it should append the row. I have this following code which is adding a row with 9 columns at the first button click.but for the next button click , it is over writing on the previously added row. please help me out.
protected
void btnOK_Click(object sender, EventArgs e)
{

TableRow
tr = new TableRow();
TableCell firstcell = new TableCell();
TextBox firstcelltxtbox = new TextBox();
firstcelltxtbox.Text =
this.ddlDepartments.Text;
firstcell.Controls.Add(firstcelltxtbox);
tr.Cells.Add(firstcell);
//add cells to the new row
for (int i = 0; i < 8; )
{
TableCell tc = new TableCell();
TextBox txtbox = new TextBox();
tc.Controls.Add(txtbox);
tr.Cells.Add(tc);
i++;
}
// add row to the existing table

this.TableMyTimeSheet.Rows.Add(tr);

}
0
ramya g

ramya g

NA 5 0 15y

Thanks Nikhil,
Can you please let me know how to add just one row with 9 columns each time i click the button.
Thanks,
Ramya