asp:TextBox ReadOnly=true 还是 Enabled=false?

1

本文介绍了asp:TextBox ReadOnly=true 还是 Enabled=false?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

asp:TextBox 控件的 Enabled 和 ReadOnly-properties 有什么区别?

What's the difference between the Enabled and the ReadOnly-properties of an asp:TextBox control?

推荐答案

如果一个控件被禁用它不能被编辑并且它的内容在提交表单时被排除.

If a control is disabled it cannot be edited and its content is excluded when the form is submitted.

如果控件是只读,则无法对其进行编辑,但其内容(如果有)仍包含在提交中.

If a control is readonly it cannot be edited, but its content (if any) is still included with the submission.

这篇关于asp:TextBox ReadOnly=true 还是 Enabled=false?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

请求的性能计数器不是自定义计数器,它必须初始化为 ReadOnly
The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly(请求的性能计数器不是自定义计数器,它必须初始化为 ReadOnly)...
2023-11-11 C#/.NET开发问题
11

Func<string,string> 有什么区别?和委托?
What is the difference between Funclt;string,stringgt; and delegate?(Funclt;string,stringgt; 有什么区别?和委托?)...
2023-11-11 C#/.NET开发问题
3

如何通过串口 RS-232 或 USB 转换器将体重秤的重量显示到文本框中?
How to display weight from weighing scale into a textbox via serial port RS-232 or usb converter?(如何通过串口 RS-232 或 USB 转换器将体重秤的重量显示到文本框中?)...
2023-11-10 C#/.NET开发问题
5

ASP.NET MVC 中的 <%: 和 <%= 有什么区别?
What is the difference between lt;%: and lt;%= in ASP.NET MVC?(ASP.NET MVC 中的 lt;%: 和 lt;%= 有什么区别?)...
2023-11-10 C#/.NET开发问题
0

标签系统的 linq 查询 - 搜索多个标签
linq query for tag system - search for multiple tags(标签系统的 linq 查询 - 搜索多个标签)...
2023-11-10 C#/.NET开发问题
0

论坛标签.实施它们的最佳方法是什么?
Forum tags. What is the best way to implement them?(论坛标签.实施它们的最佳方法是什么?)...
2023-11-10 C#/.NET开发问题
1