C#-将DataRow字符串转换为符号

时间:2018-08-23 10:22:19

标签: c# asp.net

我希望将显示在网页上的字符串转换为符号,并且还希望添加新信息以使用该符号。

我在这里有此代码:

<asp:TableCell> <asp:Label ID="lblSPassword" runat="server" Visible="false" Text=""></asp:Label> <asp:TextBox ID="txtSPassword" Width="70%" runat="server" TextMode="Password"></asp:TextBox> </asp:TableCell>

            lblSAId.Text = dr["Caddress.id"].ToString();
            lblSOMId.Text = dr["Conlinemembership.id"].ToString();
            txtSEmail.Text = dr["Caddress.name"].ToString();
            lblSPassword.Text = dr["Conlinemembership.password"].ToString();
            txtSPassword.Text = dr["Conlinemembership.password"].ToString();

            lblPAId.Text = dr["Paddress.id"].ToString();
            lblPOMId.Text = dr["Ponlinemembership.id"].ToString();
            txtPEmail.Text = dr["Paddress.name"].ToString();
            lblSPassword.Text = dr["Ponlinemembership.password"].ToString();
            txtPPassword.Text = dr["Ponlinemembership.password"].ToString();

目前它将显示哈希密码,并且在输入密码时将保留原始文本,如何将其转换为符号以显示并同时书写?

示例: Password Without symbol

我理想的情况是:Password With Symbol

很抱歉,我的问题还不完全清楚。

0 个答案:

没有答案