注册 登录
编程论坛 ASP.NET技术论坛

这个错误如何解决?

disha 发布于 2007-10-29 14:36, 710 次点击

错误:“HtmlSelect”不能有类型为“LiteralControl”的子级。
<select id="DDLYear" onchange="toDate()" style="width: 71px" runat="server">

<script>for(i=1970;i<=2010;i++)document.write("<option>"+i+"</option>")</script>

</select>
&nbsp;年&nbsp;
<select id="DDLMonth" onchange="toDate()" style="width: 78px" runat="server">

<script>for(i=1;i<=12;i++)document.write("<option>"+i+"</option>")</script>

</select>
&nbsp;月&nbsp;
<select id="DDLDay" onchange="toDay()" style="width: 71px" runat="server">
</select>

2 回复
#2
skyland842007-10-29 19:02

select 不能 嵌套 select

#3
菜鳥弎魛2007-10-30 14:42

楼上正解

1