<asp: Details View ID=" Details View1"runat="server Auto GenerateRows=false Height=50px"Width=150px"AllowPaging=true <Fields> <asp: Bound Field DataField=" UserName" HeaderText="用户名"/> <asp: Bound Field Data Field="UserPassword"Header Text="hL"/> asp: Image Field DatalmageUrlField="UserPhoto DatalmageUrlFormatString=Images\ Photos\)"Header Text= 头像 /asp: Image Field> <asp: HyperLinkField DataNavigateUrlFields="UserBlog DataTextField="Userblog" HeaderText="博客地址"/> asp: CheckBoxField DataField=" IpAss" Headertext="用户状态"/> /Fields a </asp: Details View>
◼ <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="false" ◼ Height="50px" Width="150px" AllowPaging="true" > ◼ <Fields> ◼ <asp:BoundField DataField="UserName" HeaderText="用户名" /> ◼ <asp:BoundField DataField="UserPassword" HeaderText="密码" /> ◼ <asp:ImageField DataImageUrlField="UserPhoto" ◼ DataImageUrlFormatString="Images\Photos\{0}" HeaderText=" 头像"> ◼ </asp:ImageField> ◼ <asp:HyperLinkField DataNavigateUrlFields="UserBlog" DataTextField="UserBlog" ◼ HeaderText="博客地址" /> ◼ <asp:CheckBoxField DataField="IsPass" HeaderText="用户状态" /> ◼ </Fields> ◼ </asp:DetailsView>
fault Detailsview.aspx Column Colum 用户名数据绑定 密码数据绑定 Column 博客地址数据定 编字段一 用户状态F 加新字段一 偏细模 设计口拆分|出源|‘ p: DetailsviewaDetai- 日设计探分|回源8…pc 图9-51添加 Details View控件 图952设置完成后的 Details View