圖形驗証碼應用在密碼更新的網頁

在 ASPX 程式裡要重刷圖形
只需要 ImageButton1.ImageUrl = "ValiImg.aspx?" + Now


<table id="Table1" border="6" style="background-color:White; border-color: #6699FF; border-style: outset;width:49%; height:50%;" >
        <tr>
            <td align= "center" valign="middle" colspan="4">密碼、信箱更改</td>
        </tr>
        <tr>
            <td align= "center">請輸入新的密碼</td>
            <td align= "left"><asp:TextBox ID="TextBox1" runat="server" />
                <cc1:PasswordStrength ID="PasswordStrength1" runat="server"
                    TargetControlID="TextBox1" RequiresUpperAndLowerCaseCharacters="true"
                    MinimumNumericCharacters="1" MinimumSymbolCharacters="1" PreferredPasswordLength="6"
                    DisplayPosition="RightSide" StrengthIndicatorType="Text" />
            </td>
            <td  align="center" valign="middle" rowspan="3">
                <asp:ImageButton ID="ImageButton1" runat="server" ToolTip="看不清楚嗎?請再按一下!" ImageUrl="~/ValiImg.aspx" /><br />
                <asp:TextBox ID="TextBox4" runat="server" Width="76px" Text="輸入圖上的字" /><br />
                <asp:Label ID="ValiMsg" runat="server" />
            </td>
            <td align= "center"><asp:Button ID="Button1" runat="server" Text="確定修改" /> &nbsp</td>
        </tr>
        <tr>
            <td align= "center">請輸入新的信箱</td>
            <td align= "left"><asp:TextBox ID="TextBox2" runat="server" /> &nbsp</td>
            <td align= "center"><asp:Button ID="Button2" runat="server" Text="確定修改" /> &nbsp</td>
        </tr>
        <tr>
            <td align= "center">請輸入您的帳號</td>
            <td align= "left"><asp:TextBox ID="TextBox3" runat="server" />&nbsp</td>
            <td align= "center"><asp:Button ID="Button3" runat="server" Text="重寄密碼" /> &nbsp</td>
        </tr>           
        <tr>
            <td colspan="4" align="left">注意事項:<br />
            1.如未登入,無法顯示與修改資料。<br />
            2.忘記密碼,會重新寄送到系統預設信箱。<br />
            3.注意圖形第一個字為大寫英文字。<br />
            </td>
        </tr>
    </table>

沒有留言:

張貼留言