Learn ASP.NET MVC How to's for free here.
ITFunda.Com
Your details are safeBuyer's Satisfaction Contact Us
 Welcome Guest | Register | Login Why online training? | Buyers FAQs | Testimonials | Contact us 

Subscribe


Subscribe to Tutorials feed

Our Quality Professors


Our professors includes
Contact us for training ...

Technology Tags


ADO.NET AdRotator ASP.NET ASP.NET-AJAX Authentication-and-Authorization---LoginView BulletedList Button Caching Calendar Chart CheckBoxList Cookies CSharp CSS Cusotm-Control Debugging-and-Tracing DetailsView DropDownList-and-ListBox DropDownList-and--ListBox Error-handling FileUpload Forms-Authentication GridView HiddenField HTML HyperLink Image ImageButton ImageMap Javascript jQuery jQuery-Ajax jQuery-Attributes jQuery-effects jQuery-Effects jQuery-Events jQuery-How-to-Solution jQuery-Manipulations jQuery-Selectors jQuery-Traversing Label-and-Literal LinkButton ListView Localization-and-Globalization Login LoginName LoginStatus LoginStatus-and-LoginName-and-other-controls LoginView MasterPage Menu Meta-tags Panel PlaceHolder RadioButtonList Repeater Security Session-Management TextBox Themes-and-Skins Url-Routing User-Control Validations visual-studio Webconfig Working-with-Files-and-Folders

Search Tutorials

Keyword
eg. asp.net

Announcements

More ...


 

How to specify the text of the Label control from the code-behind?


by: Itfunda Product Type: Tips and Tricks (Books) Technologies: ASP.NET 

This how to describes you how to specify the text of the Label control from the code-behind.

ASPX PAGE

 <p><asp:Label ID="Label2" runat="server" Text="My second Label"></asp:Label></p>

CODE BEHIND

protected void Page_Load(object sender, EventArgs e)

{

   // writeing text from code behind

   Label2.Text = "Written from code behind";

}

Specify the Text property from the code behind, this will write the text on the browser.

Demo Path: /Label-Literal/LabelPage.aspx


This post is the part of following product

.NET How to Tips and Tricks (700+)

.NET How to Tips and Tricks (700+) This ".NET How to Tips and Tricks" contains solutions of hundreds of technical problems related with ASP.NET, ASP.NET MVC, SQL Serer, jQuery etc. that help you to develop real time .NET projects easily. It has following features
  • Video tutorials
  • Demo projects source code
  • eBook with to-the point explanations & output
prepared by Sheo Narayan (Ex Microsoft MVP).

 Latest tutorials

 Posts from Itfunda

  • ASP.NET MVC 5 Online training
    This is a comprehensive ASP.NET MVC 5 training, and will give you enough knowledge to start developing any kind of ASP.NET MVC applications. It is based on real time problems faced in MNCs projects. This training is delivered by Sheo Narayan (the founder of DotNetFunda.com & Ex Microsoft MVP)
    List Price: $650.00 Discount: 25.00% | Final Price: Rs 31687.50/$487.50
    More details ...

  • Microsoft SQL Server MDX 2012 Training Course
    This is a comprehensive training on SQL Server MDX 2012 delivered by an Industry Expert working in MNC which gives you enough knowledge on MDX.
    | Final Price: Rs 12037.10/$200.00
    More details ...


Share this to:

Facebook Twitter LinkedIn Google+ Pinterest Email Addthis


About Us | Contact Us | Partners | Privacy Policy | Terms and Conditions | Buyer's FAQs | Seller's FAQs | Currency Converter | Go Top

Notice: If you found someone plagiarising our content/materials, kinldy let us know.

© SN ITFunda Services LLP. Site design and layout is copyright to SN ITFunda Services LLP.
Copying or duplicating or mimicking the site design and layout is prohibited and will be treated as a legal offence and will be prosecuted.
Logos, company, product, service or other names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 16102020 | 2/9/2025 4:56:44 PM