0

我想使用圖像作爲登錄按鈕,我將按鈕類型設置爲圖像&圖像url,但圖像沒有顯示它只是顯示一個簡單的按鈕。在這方面幫助我。 [注:我已經轉換登錄控制到模板]在登錄控制中使用圖像按鈕

 <asp:Login ID="Login1" runat="server" Width="400px" LoginButtonImageUrl="~/App_Themes/Theme/login.png" LoginButtonType="Image" FailureText="Please Enter Valid User Name &amp; Password."> 

。 。 。 。

回答

2

如果您已將其轉換爲模板,則必須查看呈現登錄控件的所有html代碼。

沒有找到ID = LoginButton並將其更改爲ImageButton類似

<asp:ImageButton ImageUrl="~/img/SignIn.gif" ID="LoginButton" runat="server" CommandName="Login" AlternateText="Sign In" Text="Log In" ValidationGroup="ctl00$Login1" CssClass="GreBtn" /> 
+0

非常感謝傢伙:) – Desire 2012-03-15 17:11:56