Need help to built XMLSRSharul Nizam Ab Rahim16yAsked Jun 13, 2010, 3:56 AM EDT1 answerShareLinkedInXCopy linkSaveSo far i've as follow in my GridView JavaCopy string currentidx = null; //Enumerate the GridViewRows for (int index = 0; index <= gv.Rows.Count - 1; index++) { //Programmatically access the CheckBox from the TemplateField CheckBox cb = (CheckBox)gv.Rows[index].FindControl("RowLevelCheckBox");CodeCopy //If it's checked, read it... if (cb.Checked) { currentidx = gv.DataKeys[index].Value.ToString(); lblMsg.Text += string.Concat("<li>", currentidx, "</li>"); } }CodeCopy lblMsg.Text += "</ul>"; So my result shown 1 2 how to adjust my code above, the my output will get it as follow HTML / XMLCopy <data> <ud><idx>1</idx></ud> <ud><idx>2</idx></ud> </data> Really need help1 AnswerKnow the answer? Post it. Somebody with the same question will find it here.Abhimanyu K VatsaRank #14 · 51.6K points16y agoPosted Jun 14, 2010, 12:25 AM EDT0hello......where do u want to get result.....in XML fileI hope this article will help youhttp://www.vbdotnetheaven.com/UploadFile/abhikumarvatsa/1569/Good Luck0Join to answer this questionEvery answer you publish earns 20 SHARP.Create free accountSign in
Need help to built XMLSRSharul Nizam Ab Rahim16yAsked Jun 13, 2010, 3:56 AM EDT1 answerShareLinkedInXCopy linkSaveSo far i've as follow in my GridView JavaCopy string currentidx = null; //Enumerate the GridViewRows for (int index = 0; index <= gv.Rows.Count - 1; index++) { //Programmatically access the CheckBox from the TemplateField CheckBox cb = (CheckBox)gv.Rows[index].FindControl("RowLevelCheckBox");CodeCopy //If it's checked, read it... if (cb.Checked) { currentidx = gv.DataKeys[index].Value.ToString(); lblMsg.Text += string.Concat("<li>", currentidx, "</li>"); } }CodeCopy lblMsg.Text += "</ul>"; So my result shown 1 2 how to adjust my code above, the my output will get it as follow HTML / XMLCopy <data> <ud><idx>1</idx></ud> <ud><idx>2</idx></ud> </data> Really need help
Abhimanyu K VatsaRank #14 · 51.6K points16y agoPosted Jun 14, 2010, 12:25 AM EDT0hello......where do u want to get result.....in XML fileI hope this article will help youhttp://www.vbdotnetheaven.com/UploadFile/abhikumarvatsa/1569/Good Luck0
Abhimanyu K VatsaRank #14 · 51.6K pointsPosted Jun 14, 2010, 12:25 AM EDT
where do u want to get result.....in XML file
I hope this article will help you
http://www.vbdotnetheaven.com/UploadFile/abhikumarvatsa/1569/
Good Luck