当前位置:网站首页>类型“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-执行流程+缓存+存储引擎
- (2022 Niu Ke Duo School 5) D-Birds in the tree (tree DP)
- LeetCode 283. 移动零(简单、数组)
- 自然语言处理 文本预处理(上)(分词、词性标注、命名实体识别等)
- 59:第五章:开发admin管理服务:12:MongoDB的使用场景;(非核心数据,数据量比较大的非核心数据,人脸照片等隐私的小文件;)
- Splunk Filed extraction field interception
- gdalinfo: error while loading shared libraries: libgdal.so.30: cannot open shared object file: No su
- Aided by training and learning by battle | The new version of the Offensive and Defense World Platform is officially launched!
- 主流定时任务解决方案全横评
- (2022 Nioke Duo School 5) C-Bit Transmission (Thinking)
猜你喜欢

MySQL-底层设置

图腾柱和推挽电路介绍

初探形式化方法基本原理

Mysql error 2003 solution Can 't connect to Mysql server on' localhost '(10061).

Metasploit(MSF)基础超级详细版

PLSQL Developer安装和配置

Aided by training and learning by battle | The new version of the Offensive and Defense World Platform is officially launched!

Introduction to Totem Pole and Push-Pull Circuits

MySQL - based
![WebGPU 导入[2] - 核心概念与重要机制解读](/img/8f/195a3b04912d8872d025df58ab5960.png)
WebGPU 导入[2] - 核心概念与重要机制解读
随机推荐
WebGPU 导入[2] - 核心概念与重要机制解读
OC-NSSet(集合)
MySQL-基础
LeetCode brush questions (7)
(2022 Niu Ke Duo School 5) B-Watches (two points)
企业实训复现指导手册——基于华为ModelArts平台的OpenPose模型的训练和推理、基于关键点数据实现对攀爬和翻越护栏两种行为的识别、并完成在图片中只标注发生行为的人
MySQL database design specification
【CV】OpenVINO installation tutorial
gdalinfo: error while loading shared libraries: libgdal.so.30: cannot open shared object file: No su
主流定时任务解决方案全横评
(2022牛客多校五)B-Watches(二分)
Splunk Filed Alias field name
FormData上传二进制文件、对象、对象数组
逆变器绝缘检测检测功能及软件实现
Agile, DevOps and Embedded Systems Testing
MySQL-数据库设计规范
Probability Theory and Mathematical Statistics
MySQL报错1055解决办法:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains
Gradle系列——Gradle插件(基于Gradle文档7.5)day3-2
MySQL-索引优化和查询优化