|
Tento článek byl přeložen strojově počítačem. Původní text zobrazíte přesunutím ukazatele myši nad jednotlivé věty článku. Další informace
|
Překlad
Originál
|
HyperLinkColumn – třída
Obor názvů: System.Web.UI.WebControls
Sestavení: System.Web (v System.Web.dll)
Typ HyperLinkColumn zveřejňuje následující členy.
| Název | Popis | |
|---|---|---|
![]() | DataNavigateUrlField | |
![]() | DataNavigateUrlFormatString | |
![]() | DataTextField | |
![]() | DataTextFormatString | |
![]() | DesignMode | |
![]() | FooterStyle | |
![]() | FooterText | |
![]() | HeaderImageUrl | |
![]() | HeaderStyle | |
![]() | HeaderText | |
![]() | IsTrackingViewState | |
![]() | ItemStyle | |
![]() | NavigateUrl | |
![]() | Owner | |
![]() | SortExpression | |
![]() | Target | |
![]() | Text | |
![]() | ViewState | |
![]() | Visible |
| Název | Popis | |
|---|---|---|
![]() | Equals(Object) | |
![]() | Finalize | Umožňuje objektu pokusit se uvolnit prostředky a provést další operace vyčištění předtím, než je odstraněn při uvolňování paměti. |
![]() | FormatDataNavigateUrlValue | |
![]() | FormatDataTextValue | |
![]() | GetHashCode | |
![]() | GetType | |
![]() | Initialize | |
![]() | InitializeCell | |
![]() | LoadViewState | |
![]() | MemberwiseClone | |
![]() | OnColumnChanged | |
![]() | SaveViewState | |
![]() | ToString | |
![]() | TrackViewState |
| Název | Popis | |
|---|---|---|
![]() ![]() | IStateManager.IsTrackingViewState | Infrastruktura. |
![]() ![]() | IStateManager.LoadViewState | Infrastruktura. |
![]() ![]() | IStateManager.SaveViewState | Infrastruktura. |
![]() ![]() | IStateManager.TrackViewState | Infrastruktura. |
Poznámka |
|---|
Poznámka |
|---|
Poznámka |
|---|
Upozornění |
|---|
Poznámka |
|---|
<%@ Page Language="C#" AutoEventWireup="True" %> <%@ Import Namespace="System.Data" %> <!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> <title>HyperLinkColumn Example</title> <script runat="server"> ICollection CreateDataSource() { DataTable dt = new DataTable(); DataRow dr; dt.Columns.Add(new DataColumn("IntegerValue", typeof(Int32))); dt.Columns.Add(new DataColumn("PriceValue", typeof(Double))); for (int i = 0; i < 3; i++) { dr = dt.NewRow(); dr[0] = i; dr[1] = (Double)i * 1.23; dt.Rows.Add(dr); } DataView dv = new DataView(dt); return dv; } void Page_Load(Object sender, EventArgs e) { MyDataGrid.DataSource = CreateDataSource(); MyDataGrid.DataBind(); } </script> </head> <body> <form id="form1" runat="server"> <h3>HyperLinkColumn Example</h3> <asp:DataGrid id="MyDataGrid" BorderColor="black" BorderWidth="1" GridLines="Both" AutoGenerateColumns="false" runat="server"> <HeaderStyle BackColor="#aaaadd"/> <Columns> <asp:HyperLinkColumn HeaderText="Select an Item" DataNavigateUrlField="IntegerValue" DataNavigateUrlFormatString="detailspage.aspx?id={0}" DataTextField="PriceValue" DataTextFormatString="{0:c}" Target="_blank"/> </Columns> </asp:DataGrid> </form> </body> </html>
<%@ Page Language="C#" AutoEventWireup="True" %> <!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> <title>Details page for DataGrid</title> <script runat="server"> void Page_Load(Object sender, EventArgs e) { Label1.Text = "You selected item: " + Request.QueryString["id"]; } </script> </head> <body> <h3>Details page for DataGrid</h3> <asp:Label id="Label1" runat="server"/> </body> </html>
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (role Server Core není podporována), Windows Server 2008 R2 (role Server Core je podporována s aktualizací SP1 nebo novější, architektura Itanium není podporována)
.NET Framework nepodporuje některé verze platforem. Seznam podporovaných verzí naleznete v tématu Požadavky na systém rozhraní .NET framework.

