• 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")+"'");

  • 相关阅读:
    执行eclipse,迅速failed to create the java virtual machine。
    hdu4000 &amp;&amp; hrbust1625
    linux高级技巧:heartbeat+lvs(一)
    Android-它们的定义Dialog
    @repository注解
    常用myeclipse的快捷键,对菜鸟超有用的
    myEclipse快捷键
    JDK 1.6.0和 6.0 有啥区别,JavaTM SE 6 的平台名字和版本号的说明(转)
    Cannot return from outside a function or method
    eclipse报错 com/genuitec/eclipse/j2eedt/core/J2EEProjectUtil 转
  • 原文地址:https://www.cnblogs.com/lingxzg/p/2572692.html
Copyright © 2020-2023  润新知