首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

ASP.NET中通过GRIDVIEW"选择"的按钮将数据显示到TEXTBOX中

<asp:GridView   ID="GridView1" runat="server" DataKeyNames="ckdh" Height="183px" Style="left: 0px; position: relative;             top: -18px; font-size: small;" Width="864px" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"              AutoGenerateSelectButton="True" CellPadding="4" ForeColor="#333333" GridLines="None"  OnSelectedIndexChanging="GridView1_SelectedIndexChanging" EmptyDataText="未录入">             <PagerStyle HorizontalAlign="Right" BackColor="#FFCC66" ForeColor="#333333"/>             <PagerSettings Mode="NextPreviousFirstLast" FirstPageText="第一页" PreviousPageText="上一页" NextPageText="下一页" LastPageText="最后一页" />             <Columns>                 <asp:BoundField  DataField="ckdh" HeaderText="出库单号" SortExpression="ckdh" />                 <asp:BoundField  DataField="ckkb" HeaderText="出库库别" SortExpression="ckkb" />                 <asp:BoundField  DataField="ypqx" HeaderText="药品去向" SortExpression="ypqx" />                 <asp:BoundField  DataField="ypbh" HeaderText="药品编号" SortExpression="ypbh" />                 <asp:BoundField  DataField="ypmc" HeaderText="药品名称" SortExpression="ypmc" />                 <asp:BoundField  DataField="gg" HeaderText="药品规格" SortExpression="gg" />                 <asp:BoundField  DataField="dw" HeaderText="药品单位" SortExpression="dw" />                 <asp:BoundField  DataField="sj" HeaderText="出库价格" SortExpression="sj" />                 <asp:BoundField  DataField="sl" HeaderText="出库数量" SortExpression="sl" />             </Columns>             <SelectedRowStyle ForeColor="Navy" BackColor="#FFCC66" Font-Bold="True" />             <RowStyle ForeColor="#333333" BackColor="#FFFBD6" />             <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />             <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />             <AlternatingRowStyle BackColor="White" />         </asp:GridView>

01
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    sql 时间转字符串_字符串举例

    Select CONVERT(varchar(100), GETDATE(), 0): 05 20 2021 3:47PM Select CONVERT(varchar(100), GETDATE(), 1): 05/20/21 Select CONVERT(varchar(100), GETDATE(), 2): 21.05.20 Select CONVERT(varchar(100), GETDATE(), 3): 20/05/21 Select CONVERT(varchar(100), GETDATE(), 4): 20.05.21 Select CONVERT(varchar(100), GETDATE(), 5): 20-05-21 Select CONVERT(varchar(100), GETDATE(), 6): 20 05 21 Select CONVERT(varchar(100), GETDATE(), 7): 05 20, 21 Select CONVERT(varchar(100), GETDATE(), 8): 15:47:31 Select CONVERT(varchar(100), GETDATE(), 9): 05 20 2021 3:47:31:410PM Select CONVERT(varchar(100), GETDATE(), 10): 05-20-21 Select CONVERT(varchar(100), GETDATE(), 11): 21/05/20 Select CONVERT(varchar(100), GETDATE(), 12): 210520 Select CONVERT(varchar(100), GETDATE(), 13):20 05 2021 15:47:31:410 Select CONVERT(varchar(100), GETDATE(), 14): 15:47:31:410 Select CONVERT(varchar(100), GETDATE(), 20):2006-05-16 10:57:47 Select CONVERT(varchar(100), GETDATE(), 21):2021-05-20 15:47:31.410 Select CONVERT(varchar(100), GETDATE(), 22): 05/20/21 3:47:31 PM Select CONVERT(varchar(100), GETDATE(), 23): 2021-05-20 Select CONVERT(varchar(100), GETDATE(), 24): 15:47:31 Select CONVERT(varchar(100), GETDATE(), 25): 2021-05-20 15:47:31.410 Select CONVERT(varchar(100), GETDATE(), 100): 05 20 2021 3:47PM Select CONVERT(varchar(100), GETDATE(), 101): 05/20/2021 Select CONVERT(varchar(100), GETDATE(), 102): 2021.05.20 Select CONVERT(varchar(100), GETDATE(), 103): 20/05/2021 Select CONVERT(varchar(100), GETDATE(), 104): 20.05.2021 Select CONVERT(varchar(100), GETDATE(), 105):20-05-2021 Select CONVERT(varchar(100), GETDATE(), 106):20 05 2021 Select CONVERT(varchar(100), GETDATE(), 107): 05 20, 2021 Select CONVERT(varchar(100), GETDATE(), 108): 15:47:31 Select CONVERT(varchar(100), GETDATE(), 109): 05 20 2021 3:47:31:410PM Select CONVERT(varchar(100), GETDATE(), 110): 05-20-2021 Select CONVERT(varchar(100), GETDATE(), 111): 2021/05/20 Select CONVERT(varchar(100), GETDATE(), 112): 20210520 Select CONVERT(varchar(100), GETDATE(),

    02
    领券