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)