当前位置:网站首页>类型“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 的窗体标记内
周末在家和朋友讨论了很长时间的学习计划,谁知道到了晚上我居然睡不着,内心很烦,就是那种游戏也不想打,短视频也不想刷,我远离手机一会儿静了静,然后搞了会儿学习,最后才能睡着
交流和总结总是需要的,但最后都应该付诸于行动,否则就是瞎想,永远到达不了理想的彼岸!加油,今天周一。
边栏推荐
- 自然语言处理 文本预处理(上)(分词、词性标注、命名实体识别等)
- 吃透Chisel语言.30.Chisel进阶之通信状态机(二)——FSMD:以Popcount为例
- MySQL error 1055 solution: [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains
- MySQL-慢查询日志
- FormData上传二进制文件、对象、对象数组
- 【ROS基础】map、odom、base_link、laser 的理解 及其 tf 树的理解
- 查找最大的n个文件
- Analysis of GCC compiler technology
- 有关 sql中的 concat()函数问题,如何拼接
- MySQL-执行流程+缓存+存储引擎
猜你喜欢

MySQL - index explanation

Xilinx约束学习笔记—— 时序约束

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

如何保护智能家居不受黑客攻击
![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

替换ptmalloc,使用tcmalloc和jemalloc

2022-08-01 第四小组 修身课 学习笔记(every day)

在VMware上安装Metasploitable2

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

MySQL - based
随机推荐
OC - NSSet (set)
MySQL-基础
使用hutool做本地缓存的工具类
Hack The Box - File Transfers Module详细讲解中文教程
From cloud computing to function computing
吃透Chisel语言.31.Chisel进阶之通信状态机(三)——Ready-Valid接口:定义、时序和Chisel中的实现
Probability Theory and Mathematical Statistics
spark read local file
Understand the Chisel language. 30. Chisel advanced communication state machine (2) - FSMD: Take Popcount as an example
(2022 Nioke Duo School 5) C-Bit Transmission (Thinking)
FormData上传二进制文件、对象、对象数组
LeetCode刷题(7)
自然语言处理 文本预处理(下)(张量表示、文本数据分析、文本特征处理等)
Splunk Filed extraction 字段截取
Azure Synapse Analytics上创建用户并赋予权限
OC-NSArray
MySQL报错1055解决办法:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains
CollectionUtil:一个函数式风格的集合工具
Splunk Filed extraction field interception
Data reveal that the average cost is as high as $4.35 million in 2022, a record!