📄 objectlist.aspx
字号:
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>
<%@ Page language="c#" Codebehind="ObjectList.aspx.cs" Inherits="AspxCnMob.MobileWebForm1" AutoEventWireup="false" %>
<HEAD>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="C#">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/Mobile/Page">
</HEAD>
<body Xmlns:mobile="http://schemas.microsoft.com/Mobile/WebForm">
<mobile:Form id="Form1" runat="server" title="ObjectList例子">
<mobile:ObjectList id="olst" Runat="server" LabelStyle-StyleReference="title" CommandStyle-StyleReference="subcommand">
<DeviceSpecific>
<Choice>
<ItemTemplate>
<!--标题-->
<mobile:Link Runat="server" Text='<%# ((ObjectListItem)Container)["Title"] %>' NavigateUrl='<%# "ObjectList.aspx?id="+((ObjectListItem)Container)["Id"]%>' ID="Title" NAME="Title">
</mobile:Link>
</ItemTemplate>
<ItemDetailsTemplate>
</ItemDetailsTemplate>
</Choice>
</DeviceSpecific>
</mobile:ObjectList>
</mobile:Form>
</body>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -