摘要:
最早时间:<asp:DropDownList ID="StrTime" runat="server" style="margin-right:60px"/>最晚时间:<asp:DropDownList ID="EndTime" runat="server" />StrTime.Items.Clear(); EndTime.Items.Clear(); string M = "0"; for (int N = 0; N < 24; N++) { if (N > 9) { M = ""; } StrTime.Items.Add(new ListItem((M + 阅读全文
摘要:
调用:SetDropDownList(RoomNum, 1, 10, 0);/// <summary> /// 设置DropDownList下拉列表的内容 /// </summary>public static void SetDropDownList(DropDownList xDropDownList,int xMin,int xMax,int xInt){xDropDownList.Items.Clear(); for(int i=xMin;i<=xMax;i++) { ListItem myItem=new ListItem(i.ToString(),i. 阅读全文