zoukankan      html  css  js  c++  java
  • gridview 给服务器端传多个参数

                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbReserved" runat="server" CommandArgument='<%# Eval("DutyDate")+","+Eval("DoctorId")+","+ Eval("DeptCode")%>'
                                        CommandName="itemReserved" OnCommand="gvReservedReg_Command">预约</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>

     string strReservedTime = string.Empty;
                        foreach (Control cl in this.Form.Controls)
                        {
                            if (cl.GetType() == typeof(RadioButton))
                            {
                                RadioButton rb = (RadioButton)cl;

                                DateTime dtNow = DateTime.Now;
                                DateTime dtTimeSect = Convert.ToDateTime(DutyDate + " " + rb.Text);
                                if (dtTimeSect < dtNow)
                                    rb.Enabled = false;

                            }
                        }

                                        <asp:TemplateField>
                                            <ItemTemplate>

                                                       <a href="#" onclick='return openDiv3("<%#Eval("ReserveTime")%>");'>取消</a>
                                            </ItemTemplate>

                        DataRow[] rows = dtDuty.Select("DoctorId='" + item.DoctorId.ToString() + "' And DutyDate='"+item.DutyDate.ToString("yyyy-MM-dd")+"'");

  • 相关阅读:
    利用python数据分析与挖掘相关资料总结
    pandas库学习笔记(一)Series入门学习
    mysql error:You can't specify target table for update in FROM clause
    查询及删除重复记录的SQL语句
    PHP tripos()函数使用需要注意的问题
    如何用git上传代码到github详细步骤
    这是我的第一篇博客
    html link js
    BOM与DOM
    创建简单的表单
  • 原文地址:https://www.cnblogs.com/lingxzg/p/2572692.html
Copyright © 2011-2022 走看看