This ASP.NET tutorial explains how to programmatically set the TextBox value and get the TextBox value in ASP.NET in C#.
The next example uses a test.aspx page named SetAndGetTextBox.aspx which has two asp:Label controls and one asp:TextBox control. In the code behind the local string variable value is use to read in it the system [...]
This ASP.NET tutorial explains how to apply CSS style in the Label control from code-behind in ASP.NET in C#.
You can apply CSS style from code behind by accessing the properties of the control with the help of its Id. Most of the CSS styles can be applied using the Font property and its [...]
This ASP.NET tutorial explains how to change the text of the Label control from the code-behind in C#.
<%@ Page Language=”C#” AutoEventWireup=”false” CodeBehind=”TestPage.aspx.cs” Inherits=”TestChange.TestPage” %>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<title>Change the text of the Label control from the code-behind</title>
<form id=”form1″ runat=”server”>
<asp:Label ID=”LabelTest” runat=”server” Text=”My test label”></asp:Label>
This ASP.NET tutorial explains how to create a simple content page in ASP.NET.
You can use your master page created as described in the article: How to create a simple master page in ASP.NET in another page by adding the MasterPageFile attribute to the Page directive. This attribute indicates the filename of the master page [...]
This ASP.NET tutorial explains how to create a simple master page in ASP.NET.
You can create a master page by following the next steps in Visual Studio:
1. Select Website ➤ Add New Item from the menu.
2. Select Master Page
3. Give it a filename for example SiteTemplate.master
4. Click Add.
This ASP.NET tutorial explains how to populate the TreeNode objects in ASP.NET in C#.
If your project has a large amount of data to display in a TreeView, you probably don’t want to fill it in all at once, because that increase the time taken to process the initial request for the page, and also [...]
This ASP.NET tutorial explains how to use the TreeNode object in selection mode in ASP.NET in C#.
You can use TreeNode in one of two modes:
- In selection mode, clicking the node posts back the page and raises the TreeView.SelectedNodeChanged event. This is default mode for all nodes.
This ASP.NET tutorial explains how to use the AdRotator control in ASP.NET page in C#.
By using the AdRotator control your ASP.NET web page randomly selects banner graphics from a list that is specified in an external XML schedule file. Before creating the control, you should define the XML schedule file, as shown in [...]
This ASP.NET tutorial explains how to use the BulletedList control in ASP.NET page.
ASP.NET BulletedList control is the server-side equivalent of the <ul> (unsorted list) or <ol> (ordered list) elements. As with all list controls, you have to use the Items property to set the collection of items that should be displayed. The next table lists [...]