This is a very simple question. I just want to learn about ASP.NET (C #). I used to do classic ASP and PHP.
For this project, I have ASP.NET 2.0 .
I have a web form with jqGrid Datagrid that I want to pass XML data through AJAX. jqGrid is not a problem here. "Problem" is the approach I should use to generate XML.
How to do it in ASP.NET?
- Create a new web form that generates this data?
- Am I using a new web service (which will not return the required XML document to me?)?
- How do I put a function in an existing web form that shows a table? If so, how?
After making this decision: how can I output XML? I do not want to use any ASP.NET XML components because it is simple, simplified XML with one record after another. Using System.Xml would be too big to justify here.
<?xml version='1.0' encoding='utf-8'?> <rows> <page>1</page> <total>25</total> <records>3</records> <row id='1'> <cell>Row 1, Column 1</cell> <cell>Row 1, Column 2</cell> <cell>Row 1, Column 3</cell> </row> <row id='2'> <cell>Row 2, Column 1</cell> <cell>Row 2, Column 2</cell> <cell>Row 2, Column 3</cell> </row> <row id='3'> <cell>Row 3, Column 1</cell> <cell>Row 3, Column 2</cell> <cell>Row 3, Column 3</cell> </row> </rows>
From my previous experience with other scripting languages, I just wanted to print an XML tag stream (Response.Write). Will I go to hell if I do this in ASP.NET?
BlaM Dec 17 '08 at 13:33 2008-12-17 13:33
source share