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 4610264
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:06:24+00:00 2026-05-22T01:06:24+00:00

I have this code in my ASP.NET code-behind file: Response.Write(<someting>) But it doesn’t work.

  • 0

I have this code in my ASP.NET code-behind file:

Response.Write("<someting>")

But it doesn’t work. If I remove the < tag delimiter, then it writes the content to the page.

My question is: how can I write an XML string to the page from a code-behind?

  • 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. Editorial Team
    Editorial Team
    2026-05-22T01:06:25+00:00Added an answer on May 22, 2026 at 1:06 am

    What you’re doing is already fine. Your <someting> tag isn’t showing on the page because the browser is expecting HTML, so it interprets <someting> as an HTML tag it doesn’t understand and displays nothing. If you look at the source of the page you should see the tag.

    Your XMLHttpRequest (XHR) request should be able to read this data as XML without a problem, even though it’s not displayed directly in the browser. However, as outlined in another answer, you should ideally change the content-type to text/xml, so the client knows what data format to expect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In code-behind of an ASP.NET page I have this method: public string TestFunc() {
I have this code in my ASP.NET application written in C# that is trying
I have ASP.Net code similar to the following (this is inside a FIELDSET): <ol>
This is a beginner level question for asp.net MVC I have the following code
I have a boolean property in code-behind ASP.NET, now I want to use it
I have a page, Default.aspx, with its own code-behind file like this: using System;
I have this code: <asp:RadioButtonList ID=rblExpDate runat=server > <asp:ListItem Selected=True Text=No expiration date></asp:ListItem> <asp:ListItem
I have a this aspx-code: (sample) <asp:DropDownList runat=server ID=ddList1></asp:DropDownList> With this codebehind: List<System.Web.UI.WebControls.ListItem> colors
We have a very simple ASP.Net page for uploading a file to our webserver.
How do I access data from html in asp.net in the .cs (code behind)

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.