Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从存储过程生成的下拉列表中获取两个值以用作参数?示例:ReportMonth 和 ReportYear。我可以从下拉列表中获取 ReportMonth,但无法获取 ReportYear。Response.Redirect("default.aspx?reportmonth=" + ddlSelectReport.SelectedItem.Value + "&reportyear=2013"
Response.Redirect("default.aspx?reportmonth=" + ddlSelectReport.SelectedItem.Value + "&reportyear=2013"
您所需要的只是为年份创建另一个下拉列表。
Response.Redirect("default.aspx?reportmonth=" + ddlSelectMonthReport.SelectedItem.Value + "&reportyear=" + ddlSelectYearReport.SelectedItem.Value)
我通常通过 CSS 设置固定的列宽,结果完美无瑕:
#tableID thead tr th:nth-child(1){width: 75px;} #tableID thead tr th:nth-child(2){width: 75px;} /* etc… */
但是现在我处于一种情况,直到运行时我才知道所需的列宽。这是我用来动态设置列宽的代码的摘录: