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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:33:51+00:00 2026-05-27T12:33:51+00:00

I created a page with some controls on it. When I put <% label.Text

  • 0

I created a page with some controls on it. When I put “<% label.Text = “changed”;%>” after the definition of Label, Label’s text value is not rendered after the page is executed. Why?

<div>
   <tagprefix:MD ID="CC"  runat="server" />
        <asp:TextBox runat="server"  ID="TextBox1"/>
        <asp:Button Text="button" ID="Button"  runat="server" onclick="Button_Click" />
        <%= "Hello..." %>

        <% label.Text = "changed"; %>                          //working fine
        <asp:Label ID="label" Text="text" runat="server" />
        <% label.Text = "changed"; %>               // do not work
</div>
  • 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-27T12:33:52+00:00Added an answer on May 27, 2026 at 12:33 pm
    string hello = "hello";
    
    Response.Write( hello );
    
    hello = "world"
    

    Why does it display “hello” instead of “world” ?

    The answer to that question is also the answer to yours.

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

Sidebar

Related Questions

I've created some dynamic controls on page load and added an event handler to
I have a page that contains some dynamically created controls (TextBox and DropDownList). When
I created a web control, and it needs some data from its parent page.
I just created a PHP page that spits outs some data from my database
I've created a web page that lets you input some information and then draws
In a JSP page, I created a <h:form enctype=multipart/form-data> with some elements: <t:inputText> ,
My ASP.NET page has some html: Default.aspx : <h2><asp:Localize meta:resourcekey=lblTitle Text=Welcome to so runat=server></h2>
I want to load a UIView as the first page and some UIImageViews after
I'll have an ASP.net page that creates some Excel Sheets and sends them to
i created a page on which i tried to attain the effect of bottom

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.