Web User Control not showing on page

Last post 11-09-2007 10:55 AM by subby. 2 replies.

Sort Posts:

  • Web User Control not showing on page

    02-13-2006, 8:08 AM
    • Loading...
    • snipered
    • Joined on 11-23-2005, 11:29 AM
    • Posts 5

    Hi,

    i am fairly new to asp.net.  I have created a user control for Header and a Footer.  On my standard aspx page, i have set the following. I have looked on previous posts and websites for this.

    <%@ Register TagPrefix="uc1" TagName="links" Src="Header.ascx" %>

    Then i said where i want to place it in my HTML like:

    <uc1:links id="links1" runat="server" />

    I then compiled it and ran it. The Header does not show. However, when i look at the bottom of Internet Explorer, i see it trying to load the control because it says loading image and that particular image is in the user control, but it shows nothing.

    Does someone know what's wrong please?

  • Re: Web User Control not showing on page

    02-13-2006, 8:11 AM
    • Loading...
    • NetProfit
    • Joined on 09-23-2002, 11:51 AM
    • Saint John, NB - Canada
    • Posts 1,252

    What does your user control contain - just an image?  To see if the content is being rendered to the browser, view the page source from your browser window and see if you can see the HTML that should be generated from your user control.  If the image is not loading, check the src attribute in the HTML source to make sure it is pointing to the correct location.

     

    Jamie Kindred, CGA, MCSD
  • Re: Web User Control not showing on page

    11-09-2007, 10:55 AM
    • Loading...
    • subby
    • Joined on 11-09-2007, 10:48 AM
    • Posts 2

    I have the similar issue. When I see the html source rendered to the browser it has correct path and by saving it as HTML and opening it in browser correctly displays it. Just wondering if it could be ISAPI related issue. Also, same application works fine if I install it to a different webserver. I am currently using Win2003 Standard Edition and bowser is IE 7 or Firefox (I tried both). Also there is no security software installed on WebServer and it's out of firewall as well.

     

    Thanks for your help in advance,

    -Subby 

Page 1 of 1 (3 items)
Microsoft Communities
Page view counter