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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:43:09+00:00 2026-05-29T07:43:09+00:00

normaly a asp.net page looks like: <%@ Page Language=C# AutoEventWireup=true CodeBehind=Foo.aspx.cs Inherits=Foos %> <!DOCTYPE

  • 0

normaly a asp.net page looks like:

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
           <asp:Label ID="Label1" runat="server" Text="my text"></asp:Label>
    </div>
    </form>
</body>
</html>

and then i get displayed “my text”.

the problem is, now i need to make a page and just display the “my text” without the html stuff in the background. so when i look in the sourcecode it should just be my text

of course i need the asp.net in the background to change the label text.

is this possible?

  • 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-29T07:43:10+00:00Added an answer on May 29, 2026 at 7:43 am

    Just delete everything except the page tag, and on Page_Load write my text in the response

    In the aspx:

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

    In the .cs:

    protected void Page_Load(object sender, EventArgs e)
    {
         Response.Write("My text")
    }
    

    Or you can add a literal to the page (set it’s value in the code behind) and remove the html stuff like this:

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Foo.aspx.cs" Inherits="Foos" %>
    <asp:Literal ID="literal1" runat="server" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an asp.net page for a simple blog which looks like <asp:TextBox ID=txtContent
I have an asp.net page with several list boxes. I would like to include
There are two scenarios for an ASP.net webforms page which I would like to
I have an asp.net page with multiple validation summaries setup with ShowMessageBox=True and several
I have a normal asp.net page containing some code that I want to measure
It appears like something is stopping my errors from displaying normally an in ASP.NET
I'm using the asp:Menu control on an ASP.NET 4.0 Webforms page with table-free rendering
Can I Inherit a view in asp.net mvc2 from normal asp.net master page
I have an asp.net page with an asp.net menu. I defined the font in
I have an asp.net dropdown like this <asp:DropDownList width=95% ID=RessourceComposantes runat=server DataSourceID=Composantes DataTextField=Description DataValueField=ComposanteID>

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.