Click here to Skip to main content
15,925,782 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionusing datagrid Pin
Harikrk16-Jan-08 21:32
Harikrk16-Jan-08 21:32 
GeneralRe: using datagrid Pin
_AK_17-Jan-08 19:00
_AK_17-Jan-08 19:00 
QuestionHow to create a table for Placeholder controls Pin
Albert8316-Jan-08 21:26
Albert8316-Jan-08 21:26 
Questiondate query Pin
Pankaj Garg16-Jan-08 20:49
Pankaj Garg16-Jan-08 20:49 
GeneralRe: date query Pin
Colin Angus Mackay17-Jan-08 0:16
Colin Angus Mackay17-Jan-08 0:16 
NewsRe: date query Pin
Pankaj Garg17-Jan-08 2:04
Pankaj Garg17-Jan-08 2:04 
GeneralRe: date query Pin
dilipv17-Jan-08 21:47
dilipv17-Jan-08 21:47 
GeneralConvert DataTable in XML Pin
mpavas16-Jan-08 20:32
mpavas16-Jan-08 20:32 
Hello ,

I am working with an WebService. The current webserivce returns the dataset. Now one of the column in datatable is Author and the author is comma separated.

Example

AuthorName | BookName | Price
Blaze-Tony,Ron-Moraldo| Basic C# | 20
Blaze-Con,Bob-Moraldo | ASP.NET | 20

I want the result of the webservice to be in below format:
The Author names are comma seprated and I will do the split part.
<Table diffgr:id="Table1" msdata:rowOrder="0">
<AUTHORLIST>
<AUTHOR>
<FIRSTNAME>blaze</FIRSTNAME>
<lASTNAME>tony</lASTNAME>
</AUTHOR>

<AUTHOR>
<FIRSTNAME>RON</FIRSTNAME>
<lASTNAME>Moraldo</lASTNAME>
</AUTHOR>
</AUTHORLIST>

<BOOKNAME>Basic C#</BOOKNAME>
<Price>20</Price>

</Table>
<Table diffgr:id="Table2" msdata:rowOrder="1">
<AUTHORLIST>
<AUTHOR>
<FIRSTNAME>Con</FIRSTNAME>
<lASTNAME>Blaze</lASTNAME>
</AUTHOR>

<AUTHOR>
<FIRSTNAME>Bob</FIRSTNAME>
<lASTNAME>Moraldo</lASTNAME>
</AUTHOR>
</AUTHORLIST>

<BOOKNAME>ASP.NET </BOOKNAME>
<Price>20</Price>
</Table>


How shall I achive the same in above XML format. Check the <AUTHORLIST> tag?

Please tell me the approch?

Regards,
Pavas

GeneralPersistent Checkbox Pin
danasegaranea16-Jan-08 19:34
danasegaranea16-Jan-08 19:34 
GeneralRe: Persistent Checkbox Pin
N a v a n e e t h16-Jan-08 21:27
N a v a n e e t h16-Jan-08 21:27 
GeneralRe: Persistent Checkbox Pin
danasegaranea16-Jan-08 21:48
danasegaranea16-Jan-08 21:48 
GeneralRe: Persistent Checkbox Pin
N a v a n e e t h16-Jan-08 22:05
N a v a n e e t h16-Jan-08 22:05 
GeneralRe: Persistent Checkbox Pin
danasegaranea16-Jan-08 22:29
danasegaranea16-Jan-08 22:29 
GeneralRe: Persistent Checkbox Pin
N a v a n e e t h16-Jan-08 23:59
N a v a n e e t h16-Jan-08 23:59 
GeneralLoop through the rows of datagridview Pin
danasegaranea16-Jan-08 19:31
danasegaranea16-Jan-08 19:31 
GeneralRe: Loop through the rows of datagridview Pin
_AK_17-Jan-08 18:58
_AK_17-Jan-08 18:58 
Questionhow to make the droplist items to disabled Pin
jagan12316-Jan-08 19:11
jagan12316-Jan-08 19:11 
AnswerRe: how to make the droplist items to disabled Pin
pmarfleet16-Jan-08 19:48
pmarfleet16-Jan-08 19:48 
AnswerRe: how to make the droplist items to disabled Pin
imagic16-Jan-08 20:42
imagic16-Jan-08 20:42 
Generaldeveloping website with hindi and english language support Pin
Ravi_2116-Jan-08 18:27
Ravi_2116-Jan-08 18:27 
GeneralRe: developing website with hindi and english language support Pin
Paddy Boyd17-Jan-08 1:03
Paddy Boyd17-Jan-08 1:03 
Questionhow can i hide some items in the drop down list Pin
jagan12316-Jan-08 18:06
jagan12316-Jan-08 18:06 
AnswerRe: how can i hide some items in the drop down list Pin
pmarfleet16-Jan-08 19:46
pmarfleet16-Jan-08 19:46 
GeneralIterate through client side code using JavaScript Pin
Blumen16-Jan-08 18:01
Blumen16-Jan-08 18:01 
GeneralRe: Iterate through client side code using JavaScript Pin
Blumen16-Jan-08 19:08
Blumen16-Jan-08 19:08 

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.