<asp:TextBox ID="txt_Pname" runat="server" TextMode="Password"></asp:TextBox>
當?TextBox TextMode為Password從數據庫綁定時
this.txt_Pname.Text = table.Rows[0]["Title"].ToString();
這樣是顯示不出有值的!
可以這么寫:?this.txt_Pname.Attributes["value"] = table.Rows[0]["Title"].ToString();