aspnet-devexpress-dot-web-5baea5a5.md
Represents an ASPxHeadline control.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public class ASPxHeadline :
ASPxWebControl
Public Class ASPxHeadline
Inherits ASPxWebControl
The ASPxHeadline control can be used when composing news announcements on a web page. It is utilized as a constituent part of the ASPxNewsControl. The ASPxHeadline control can be also used independently when it’s needed to represent custom news.
The ASPxHeadline control is available on the DX.25.2: Navigation & Layout toolbox tab in the Microsoft Visual Studio IDE.
Drag the control onto a form and customize the control’s settings, or paste the control’s markup in the page’s source code.
<dx:ASPxHeadLine HeaderText="The ExpressQuantumGrid Suite v6 is Now Available" TailText="Details"
ID="headLine" runat="server" ContentText="November 17, 2006 - We are happy to announce..."
Date="11.17.2006" NavigateUrl="...">
</dx:ASPxHeadLine>
using DevExpress.Web;
...
protected void Page_Load(object sender, EventArgs e)
{
ASPxHeadline headLine = new ASPxHeadline();
headLine.ID = "headLine";
Page.Form.Controls.Add(headLine);
headLine.HeaderText = "The ExpressQuantumGrid Suite v6 is Now Available";
headLine.TailText = "Details";
headLine.ContentText = "November 17, 2006 - We are happy to announce...";
headLine.NavigateUrl = "...";
DateTime date = new DateTime(2006, 11, 17); // Year, Month, and Day.
headLine.Date = date;
}
Imports DevExpress.Web
...
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim headLine As ASPxHeadline = New ASPxHeadline()
headLine.ID = "headLine"
Page.Form.Controls.Add(headLine)
headLine.HeaderText = "The ExpressQuantumGrid Suite v6 is Now Available"
headLine.TailText = "Details"
headLine.ContentText = "November 17, 2006 - We are happy to announce..."
headLine.NavigateUrl = "..."
Dim date As DateTime = New DateTime(2006, 11, 17) ' Year, Month, and Day.
headLine.Date = date
End Sub
Note
DevExpress controls require that you register special modules, handlers, and options in the Web.config file. You can change this file or switch to the Design tab in the Microsoft Visual Studio IDE to automatically update the Web.config file. Note that this information is automatically registered if you use the DevExpress Template Gallery to create a project.
The ASPxHeadline class provides properties that allow the control’s content, date, header, tail and other elements to be customized.
Content
Date
Tail
It’s also possible to display the headline’s header. To do this, specify its text via the ASPxHeadline.HeaderText property.
Note
The ASPxHeadline control doesn’t implement any public client-side API.
Show 14 items
Object Control WebControl ASPxWebControlBase ASPxWebControl ASPxHeadline
See Also