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

  • SEARCH
  • Home
  • 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 7865429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:05:03+00:00 2026-06-03T00:05:03+00:00

I have a php code which I have converted to asp.net code. The PHP

  • 0

I have a php code which I have converted to asp.net code. The PHP code simply echoes a response which a client reads and interpretes, however in asp.net, the generated output is forced to be in html format — which is precisely because I’m using asp.net labels to print the output.

Is there a way I can achieve the same thing as the echo in php or is there a very lightweight code that can help me parse the html text properly?

EDIT:

What I’m trying to do is like

//get post data

echo “Some stuff”

My current testing aspx file is:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="grabber.aspx.cs" Inherits="qProcessor.grabber" %>

and the code behind has just one method:

    protected void Page_Load(object sender, EventArgs e)
    {
        //this.Response.Write("Welcome!");
    }

Thanks.

  • 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-06-03T00:05:04+00:00Added an answer on June 3, 2026 at 12:05 am

    The one-for-one equivalent would be Response.Write:

    Response.Write("some text");
    

    That said, ASP .NET and PHP are very different frameworks. With ASP .NET (including the MVC framework) there is rarely a need to write directly to the response stream in this manner.

    One such case would be if you wanted to return a very lightweight response. You could do something like this:

    Response.ContentType = "text/xml";
    Response.Write("<root someAttribute = 'value!' />");
    

    Any method other than using Response directly can (and probably will) alter the output. So in short – if you want to just dump raw data into the HttpResponse, you’ll want to use Response.Write().

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

Sidebar

Related Questions

I have PHP code which connects to MySql and encodes data to JSON. Later
I have some PHP code which allows me to sort a column into ascending
I have some PHP code which stores whatever is typed in a textbox in
I have the following PHP code which works out the possible combinations from a
I have a bit of PHP code which I need to return an even
I have the following lines of php code which should rename a file which
I have this php code, with which I am trying to generate a popup
I have this code which will include template.php file from inside each of these
I have this code which is passed to Paypal checkout: <?php foreach ($paypalBasket as
I have a basic ajax application, which will not work, instead the php code

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.