2012-09-01 54 views

回答

0

您在登錄轉換爲可見的模板,你必須看到:

<asp:Login ID="Login1" runat="server" > 
    <LayoutTemplate> 
     <table border="0" cellpadding="1" cellspacing="0" > 
      <tr> 
       <td> 
      ... 
      <asp:TextBox ID="UserName" runat="server"></asp:TextBox> 
      .... 

然後在後面的代碼你會發現你的控制爲:

TextBox TheUserName = (TextBox)Login1.FindControl("UserName"); 

您放置正確的用戶身份證,你想要抓住和改變你的控制。

+0

感謝Aristos,我明白了。 –