Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > using image for LogonGorm button? View modes: 
User avatar
Member
Member
eagleag-yahoo - 4/1/2009 6:15:59 AM
   
using image for LogonGorm button?
Hi,
I have a LogonForm and would like to use an image insted of the input "logon".
I've searched and cant find how to do this.
tried targetiing by css and didnt work.
how can I achive this?

THANKS :)

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 4/1/2009 8:49:19 AM
   
RE:using image for LogonGorm button?
Hi,

You need to modify ~\CMSWebParts\Membership\LogonForm.ascx file in such a way that instead of following code:

<cms:LocalizedButton ID="LoginButton" runat="server" CommandName="Login" ValidationGroup="Login1" EnableViewState="false" />


you need to use ImageButton control:

<asp:ImageButton ImageUrl="YOURimageURL" ID="LoginButton" runat="server" CommandName="Login" ValidationGroup="Login1" EnableViewState="false" />


You also need to change code behind of this web part. You need to use ImageButton object instead of LocalizedButton.

Best Regards,
Miroslav Remias.