如何在ASP.Net webform中使用标签?
发布时间:2020-05-23 11:19:29 所属栏目:asp.Net 来源:互联网
导读:我得到这个纯HTML: label for=txtPaisPais:/label input name=ctl00$ContentPlaceHolder1$txtPais type=text id=ctl00_ContentPlaceHolder1_txtPais class=textInput / 在我在Visual Studio中的实际代码我有这个:
|
我得到这个纯HTML: <label for="txtPais">Pais:</label> <input name="ctl00$ContentPlaceHolder1$txtPais" type="text" id="ctl00_ContentPlaceHolder1_txtPais" class="textInput" /> 在我在Visual Studio中的实际代码我有这个: <label for="txtPais">Pais:</label> <asp:TextBox ID="txtPais" runat="server" CssClass="textInput"></asp:TextBox> 如何应用此文本框的标签? 解决方法您应该使用< asp:Label ...>详细的在 this blog post在哈克德<asp:Label id="label" AssociatedControlId="txtPais" Text="Pais:" runat="server" /> <asp:TextBox id="txtPais" runat="server" CssClass="textInput" /> 这将正确转换正在转换的ID。 (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net – HTTP错误403 – 禁止
- 你可以在ASP.NET中指定差异./,../,~/
- 进程是经典ASP可以存储会话状态的唯一方法吗?
- asp.net – 你可以从请求变量确定时区吗?
- asp.net-mvc – MVC店面 – 科纳 – 他们在哪里?
- asp.net – 当要复制的lob数据的插入长度超过配置的最大值6
- ASP.NET Core WebApi将错误消息返回给AngularJS $http prom
- 是否可以使Page.IsPostBack独立于ASP.net而变为真?
- asp.net – 使用ItemType进行强类型转发器控制?
- asp.net-mvc – 在MVC 3模型ID属性中将ScaffoldColumn属性设
推荐文章
站长推荐
- asp.net – 即使在IIS的web.config中使用标签后,
- asp.net-mvc – 如何获取Azure网站上的错误详细信
- asp.net-mvc – 在asp.net mvc中启动一组未选中的
- asp.net-mvc – ASP.NET MVC – Respository / S
- asp.net核心 – 在Visual Sudio 2015中的Aurelia
- asp.net-mvc – 使用CSVHelper将流输出到浏览器
- ASP.NET;几个会话变量或“容器对象”?
- asp.net-identity-2 – Asp.Net身份保存用户没有
- asp.net c#membership:如何做一个GetUsersInRol
- 从Asp.Net MVC 6 API返回JSON错误
热点阅读
