We have a web user control that is used to display a logo and title on a master page, on a site that is using forms authentication. The control displays properly on pages when the user is authenticated, but on the login page only the text shows up, not the image. Here's the web control;
If the user isn't authenticated (yet), ie on the login page, the label shows up, but not the image. The image is stored in a database table, along with the title.
Any ideas?
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="LogoAndTitle.ascx.vb"
Inherits="assets_controls_LogoAndTitle" %>
<
link
href
=
"../css/Site.css"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
asp:FormView
ID
=
"FormViewLogo"
runat
=
"server"
DataKeyNames
=
"ConfigID"
DataSourceID
=
"dsConfig"
>
<
ItemTemplate
>
<
h1
>
<
telerik:RadBinaryImage
ID
=
"imgLogo"
runat
=
"server"
AlternateText='<%# Eval("PortalName") %>' CssClass="floatleft"
DataValue='<%# Eval("PortalImage") %>' />
<
asp:Label
ID
=
"PortalNameLabel"
runat
=
"server"
Text='<%# Bind("PortalName") %>' />
</
h1
>
</
ItemTemplate
>
</
asp:FormView
>
<
asp:ObjectDataSource
ID
=
"dsConfig"
runat
=
"server"
OldValuesParameterFormatString
=
"original_{0}"
SelectMethod
=
"GetData"
TypeName
=
"dsConfigTableAdapters.qryConfigTableAdapter"
>
</
asp:ObjectDataSource
>
If the user isn't authenticated (yet), ie on the login page, the label shows up, but not the image. The image is stored in a database table, along with the title.
Any ideas?