在select中不加 runat="server" 的情况下;
string val = "";
foreach (string elem in Request.Form.AllKeys)
{
if (elem.Contains("Select1"))
{
val = Request[elem];
break;
}
foreach (string elem in Request.Form.AllKeys)
{
if (elem.Contains("Select1"))
{
val = Request[elem];
break;
}
}
转载于:https://blog.51cto.com/cnming/286752