Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 819
  • Last Modified:

ASP.Net web page does not display ascx customcontrol but I can see the control contents when I "View Source"

I have an existing ASP.Net website project that has just been handed over to me. This project has an initial login.aspx page that, in addition to the typical username and password fields,  is supposed to display a custom user control at the bottom that shows a clickable image that is a link to http://www.livehelpnow.net.

I was told that this image link was visible as recently as last Friday (1/24/14). Now, when you view the page, you do not see the image or the link.

I have checked file dates on all of the files and none of them have a date modified stamp more recent than 1/13/14

If I view source for the page, I can see the Span and Divs associated with the control. It is just not showing up on the actual page.

Here is a link to the login page

https://secure.confirmdelivery.com/MAILNet/Login.aspx

The custom user control is listed at the bottom of the login.aspx page as follows;


--------start snip---------------------------------------------------------
                     </form>
        </center>
        <UserControls:OnlineHelp id="ucOnlineHelp" runat="server"></UserControls:OnlineHelp>
       </BODY>
</HTML>
-------- end snip---------------------------------------------------------

The custom control is referenced in the web.comfig, <system.web><pages><controls> section, as follows;

--------start snip---------------------------------------------------------

<add tagPrefix="UserControls" src="~/CustomControls/ctlOnlineHelp.ascx" tagName="OnlineHelp"/>

-------- end snip---------------------------------------------------------


Below is the contents of the ctlOnlineHelp.ascx file;


--------start snip---------------------------------------------------------

<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="ctlOnlineHelp.ascx.vb" Inherits="MAILnet.ctlOnlineHelp" %>

<asp:Label ID="lblOnlineHelp" runat="server" Text="OnlineHelp"></asp:Label>

-------- end snip---------------------------------------------------------

Listed below are the contents of the code-behind file, ctlOnlineHelp.ascx.vb.

--------start snip---------------------------------------------------------

Imports System.Configuration.ConfigurationManager
Imports System.Text

Public Class ctlOnlineHelp
    Inherits System.Web.UI.UserControl

#Region " Protected Methods "
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Try
            Me.lblOnlineHelp.Text = DHO.ReadFile(DHO.gSiteRoot & DHO.GetBrandingSession.BrandingFilePath & "Scripts\OnlineHelp_V3.js")
        Catch ex As Exception
            Throw New Exception(ex.Message)
        End Try
    End Sub
#End Region

End Class

-------- end snip---------------------------------------------------------

So, the label in the custom control is being filled with the OnlineHelp_v3.js

I can see all of the above code, including the contents of the OnlineHelp_v3.js, played out when I select "view source" for the login.aspx page.

What is preventing it from displaying on the actual page?

Thanks in advance,

Dave
0
dcadler
Asked:
dcadler
1 Solution
 
Miguel OzSoftware EngineerCommented:
Which browser (version) are you having this issue?
I checked your link with IE9 and it is displaying the icon as Offline in the RHS of the page.

You may have a browser incompatibility issue (Check if the browser has been updated recently). I will also check if the user control is throwing any exceptions.
0
 
dcadlerAuthor Commented:
Actually, The problem was related to a missing image file. When I contacted the livehelp vendor, they were able to tell me what file was missing. When I replaced the image file, it started working.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now