سؤال

I'm trying to add images for login and logout to a LoginStatus control in my Site.master with the following code:

<asp:LoginStatus ID="HeadLoginStatus" runat="server" LoginImageUrl="~/ICONS/Login.png" LogoutImageUrl="~/ICONS/Logout.png" LogoutAction="Redirect" LogoutPageUrl="~/"/> 

This works fine for the LogoutImageUrl (i.e. the image is displayed as expected) but not for the LoginImageUrl (no image displayed, just the standard LoginStatus). The image is definitely in the target location.

هل كانت مفيدة؟

المحلول

Maybe your image extension is in uppercase!

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top