本文介绍了边界格式密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 如何将boundfield格式设置为detailsview的密码? < asp:DetailsView ID = DetailsView1 runat = server AutoGenerateRows = False > < 字段 > < asp:BoundField DataField = FIRST_NAME HeaderText = FIRSTNAME InsertVisible = False ReadOnly = True SortExpression = FIRST_NAME / > < asp:BoundField DataField = SUR_NAME HeaderText = LASTNAME InsertVisible = 错误 ReadOnly = True SortExpression = SUR_NAME / > < asp:BoundField DataField = USER_NAME HeaderText = USERNAME InsertVisible = False ReadOnly = True SortExpression = USER_NAME / > < asp:BoundField DataField = password HeaderText = PASSWORD InsertVisible = 错误 ReadOnly = True SortExpression = 密码 / > < asp:BoundField DataField = EMAIL HeaderText = EMAIL InsertVisible = 错误 ReadOnly = True SortExpression = EMAIL / > < asp:BoundField DataField = created HeaderText = CREATED InsertVisible = 错误 ReadOnly = True SortExpression = created / > < / Fields > < / asp:DetailsView > 请帮助解决方案 替换 < asp:BoundField DataField = password HeaderText = PASSWORD InsertVisible = False ReadOnly = True SortE xpression = 密码 /> with < asp:TemplateField HeaderText = 密码 > < EditItemTemplate > < asp:TextBox ID = txtPassword runat = server TextMode = 密码 文字 =' <% #Bind( 密码)%> ' > < / asp:TextBox > < / EditItemTemplate > < ItemTemplate > < asp:TextBox ID = TextBox2 已启用 = false runat = server TextMode = 密码 文字 =' <% #Bind( 密码)%> ' > < / asp:TextBox > < / ItemTemplate > < / asp:TemplateField > 希望这会有所帮助。 how to set the boundfield format to password of a detailsview?<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False"> <Fields> <asp:BoundField DataField ="FIRST_NAME" HeaderText ="FIRSTNAME" InsertVisible ="False" ReadOnly ="True" SortExpression ="FIRST_NAME" /> <asp:BoundField DataField ="SUR_NAME" HeaderText ="LASTNAME" InsertVisible ="False" ReadOnly ="True" SortExpression ="SUR_NAME" /> <asp:BoundField DataField ="USER_NAME" HeaderText ="USERNAME" InsertVisible ="False" ReadOnly ="True" SortExpression ="USER_NAME" /> <asp:BoundField DataField ="password" HeaderText ="PASSWORD" InsertVisible ="False" ReadOnly ="True" SortExpression ="password"/> <asp:BoundField DataField ="EMAIL" HeaderText ="EMAIL" InsertVisible ="False" ReadOnly ="True" SortExpression ="EMAIL" /> <asp:BoundField DataField ="created" HeaderText ="CREATED" InsertVisible ="False" ReadOnly ="True" SortExpression ="created" /> </Fields > </asp:DetailsView>please help 解决方案 Replace<asp:BoundField DataField ="password" HeaderText ="PASSWORD" InsertVisible ="False" ReadOnly ="True" SortExpression ="password"/>with<asp:TemplateField HeaderText="Password"> <EditItemTemplate> <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Text='<%# Bind("Password") %>'></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:TextBox ID="TextBox2" Enabled="false" runat="server" TextMode="Password" Text='<%# Bind("Password") %>'></asp:TextBox> </ItemTemplate> </asp:TemplateField>Hope this will help. 这篇关于边界格式密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-21 11:29