当前位置:网站首页>类型“DropDownList”的控件“ContentPlaceHolder1_ddlDepartment”必须放在具有 runat=server 的窗体标记内。
类型“DropDownList”的控件“ContentPlaceHolder1_ddlDepartment”必须放在具有 runat=server 的窗体标记内。
2022-08-02 07:15:00 【太阳的后裔】
小编今天在开发时运行出现报错黄页,图中提示信息为“类型“DropDownList”的控件“ContentPlaceHolder1_ddlDepartment”必须放在具有 runat=server 的窗体标记内。”,怎么看代码都好像没有问题,然后再网上查询一下,修改十分简单,只要在页面中加入 ,而相关代码都放在Form标签即可解决
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<form runat="server">
<div class="fl ml40">
<div class="fl">
<label>
<input type="radio" name="docInlineRadio">
部门
</label>
</div>
<div class="fl ml10">
<asp:DropDownList ID="ddlDepartment" runat="server" CssClass="textbox-3"></asp:DropDownList>
</div>
</div>
</form>
</asp:Content>
小编参考博客社区帖子请教高手,类型“DropDownList”的控件“DDL”必须放在具有 runat=server 的窗体标记内
周末在家和朋友讨论了很长时间的学习计划,谁知道到了晚上我居然睡不着,内心很烦,就是那种游戏也不想打,短视频也不想刷,我远离手机一会儿静了静,然后搞了会儿学习,最后才能睡着
交流和总结总是需要的,但最后都应该付诸于行动,否则就是瞎想,永远到达不了理想的彼岸!加油,今天周一。
边栏推荐
猜你喜欢

MySQL - based
![MySQL error 1055 solution: [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains](/img/aa/ab58ec47bb96df803dbc6a8ff6dde3.png)
MySQL error 1055 solution: [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains

MySQL-数据库事务详解

MySQL-Execution Process + Cache + Storage Engine

Azure Synapse Analytics上创建用户并赋予权限
![MySQL报错1055解决办法:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains](/img/aa/ab58ec47bb96df803dbc6a8ff6dde3.png)
MySQL报错1055解决办法:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains

研发创新编码器霍尔板,引领企业高质量发展

敏捷、DevOps和嵌入式系统测试

LeetCode 2312. 卖木头块

(2022 Niu Ke Duo School 5) B-Watches (two points)
随机推荐
通过建立新的SaaS业务来推动增长的六种方法
【网络】IP、子网掩码
Inverter Phase Locking Principle and DSP Implementation
研发创新编码器霍尔板,引领企业高质量发展
Analysis of GCC compiler technology
2022-08-01 第四小组 修身课 学习笔记(every day)
主流定时任务解决方案全横评
LeetCode 2312. Sell Wood Blocks
Introduction to mysql operation (4) ----- data sorting (ascending, descending, multi-field sorting)
MySQL batch update
MySQL-FlinkCDC-Hudi enters the lake in real time
MySQL-执行流程+缓存+存储引擎
OC-NSDictionary
Neural network
OC-NSNumber and NSValue are generally used for boxing and unboxing
LeetCode 2360. The longest cycle in a graph
MySQL - low level settings
spark架构
(2022 Nioke Duo School 5) C-Bit Transmission (Thinking)
From cloud computing to function computing