我有這樣的代碼,我有這樣的錯誤 代碼塊是在此方面不我怎麼能寫ASP標籤中的C#代碼
<%
for (int i = 0; i < 5; i++)
{
%>
<asp:DropDownList runat="server" ID="<%=i %>">
<asp:ListItem><%i.ToString(); %></asp:ListItem>
</asp:DropDownList>
<%
}
%>
你正在** ASP.NET MVC **? –