当前位置:网站首页>类型“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 的窗体标记内
周末在家和朋友讨论了很长时间的学习计划,谁知道到了晚上我居然睡不着,内心很烦,就是那种游戏也不想打,短视频也不想刷,我远离手机一会儿静了静,然后搞了会儿学习,最后才能睡着
交流和总结总是需要的,但最后都应该付诸于行动,否则就是瞎想,永远到达不了理想的彼岸!加油,今天周一。
边栏推荐
- (2022 Niu Ke Duo School 5) B-Watches (two points)
- (2022牛客多校五)C-Bit Transmission(思维)
- MySQL batch update
- Inverter Phase Locking Principle and DSP Implementation
- Transimpedance amplifier
- OC-NSDictionary
- LeetCode刷题(7)
- 修改apt-get源为国内镜像源
- 2022年数据泄露平均成本高达435万美元,创历史新高!
- Introduction to mysql operation (4) ----- data sorting (ascending, descending, multi-field sorting)
猜你喜欢
(2022牛客多校五)C-Bit Transmission(思维)
Neural network
Enterprise training and reproduction guidebook - training and reasoning of the OpenPose model based on Huawei ModelArts platform, realizing the recognition of two behaviors of climbing and climbing ov
(2022牛客多校五)D-Birds in the tree(树形DP)
LeetCode 2312. Sell Wood Blocks
逆变器绝缘检测检测功能及软件实现
MySQL-锁机制
【CV】OpenVINO installation tutorial
Gradle系列——Gradle插件(基于Gradle文档7.5)day3-2
Introduction to mysql operation (4) ----- data sorting (ascending, descending, multi-field sorting)
随机推荐
我与csdn
Introduction to Totem Pole and Push-Pull Circuits
跨阻放大器
查看端口号占用
神经元网络
Gradle系列——Gradle插件(基于Gradle文档7.5)day3-2
【ROS基础】map、odom、base_link、laser 的理解 及其 tf 树的理解
LeetCode SQL 197. 上升的温度
【CV】OpenVINO installation tutorial
正则表达式
LeetCode 283. 移动零(简单、数组)
LeetCode刷题(7)
hdu1752 copy
LeetCode 2312. 卖木头块
Debian 10 dhcp relay (dhcp 中继) dhcp 固定分配
OC-NSSet(集合)
Analysis of GCC compiler technology
(2022 Nioke Duo School 5) C-Bit Transmission (Thinking)
How to export multiple query results at once in SQL server 2014?
Modify apt-get source to domestic mirror source