Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 106935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:40:30+00:00 2026-05-11T01:40:30+00:00

This is a very basic question. I’m just on my mission to learn ASP.NET

  • 0

This is a very basic question. I’m just on my mission to learn ASP.NET (C#). I’ve done classic ASP and PHP before.

For this project I have ASP.NET 2.0 at my hands.

I have a Web Form that has a jqGrid Datagrid that I want to feed XML data via AJAX. jqGrid is not the problem here, though. The ‘problem’ is the approach that I should take to generate the XML.

How do I do that in ASP.NET?

  • Do I create a new Web Form that generates that data?
  • Do I use a new Web Service (that would not return the XML I need, would it?)?
  • Do I somehow put a function in the existing Web Form that shows the table? If so, how?

After that decision is made: How do I output the XML? I don’t want to use any XML components of ASP.NET, because it’s just plain, simplistic XML with one record after each other. Using System.Xml would be too much overhead to be justified 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 the other scripting languages, I’d just like to print out a stream of XML tags (Response.Write). Will I go to hell if I do so in ASP.NET?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T01:40:31+00:00Added an answer on May 11, 2026 at 1:40 am

    Another solution to using a full blown XmlDocument/Linq in the ashx is to use the XmlWriter, sort of a halfway solution between hand crafting the xml as a string and using a dom.

    Something like:

    StringBuilder query = new StringBuilder();  using (XmlWriter xmlWriter = XmlWriter.Create(query)) {     xmlWriter.WriteStartElement('rows');     xmlWriter.WriteElementString('page', '1');      foreach(...)     {          xmlWriter.WriteStartElement('rows');         xmlWriter.WriteAttributeString('row', '1');          foreach(...)         {             xmlWriter.WriteElementString('cell', 'Row 1, Column 1');         }          xmlWriter.WriteEndElement();                 }      xmlWriter.WriteEndElement(); } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 86k
  • Answers 86k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Trying to clear out my unanswered questions that I've answered… May 11, 2026 at 5:19 pm
  • Editorial Team
    Editorial Team added an answer NLogViewer May 11, 2026 at 5:19 pm
  • Editorial Team
    Editorial Team added an answer Try using find . -type f -maxdepth 1 May 11, 2026 at 5:19 pm

Related Questions

This is a very basic question. I'm just on my mission to learn ASP.NET
This is a very basic question, I'm just not that good with Java. I
I realise that this is a very basic question, but it is one which
I want a list of hyperlinks on a basic html page, which point to
Let me just start out by saying I am completely new to Java web

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.