Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/73.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在asp.net中向文本框添加标题?_Asp.net_Html - Fatal编程技术网

如何在asp.net中向文本框添加标题?

如何在asp.net中向文本框添加标题?,asp.net,html,Asp.net,Html,有人告诉我,在html中,应该在输入字段中添加标题。 在ASP.Net中如何实现这一点?你的意思是 <asp:Label runat="server" AssociatedControlID="textcontrolid" Text="caption" /> 示例 <asp:Label runat="server" AssociatedControlID="tbNum1" Text="Num1:" /> <asp:TextBox runat="server"

有人告诉我,在html中,应该在输入字段中添加标题。 在ASP.Net中如何实现这一点?

你的意思是

<asp:Label runat="server" AssociatedControlID="textcontrolid" Text="caption" />

示例

<asp:Label runat="server" AssociatedControlID="tbNum1" Text="Num1:" />
<asp:TextBox runat="server" ID="tbNum1" />

也许他只是在谈论工具提示属性:



你所说的“标题”是什么意思?你能发布一个带有标题字段的图像吗?这是我唯一能想到的符合描述的东西。我可以写Num1:?
 <asp:TextBox runat="server" ID="txtFName" ToolTip="First name" />