css not applied + lost image

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default css not applied + lost image

    Hello,

    Here's a weird one that I can't quite put my finger on, but wonder if anyone
    may enlighten me?

    My ASP.NET site is all working functionally on site, but for some reason,
    none of the images are being shown in the browser when it's running, and
    also the style sheet referenced in the html header on each page is not being
    applied to the text. So, it works but looks shoddy...

    There is nothing wrong with the html - I've taken the code from 'view
    source' in browser, made a new .htm page from it in the app directory, and
    when I view it, the images are there and the css formatting is as it should
    be.

    The browser is IE version 6, and the 'show pictures' option is checked so
    it't not that that prevents the image from being rendered.

    Any ideas / pointers much appreciated.

    Ian

    [email]ian@xwebservices.net[/email]


    Ian Gordon Guest

  2. Similar Questions and Discussions

    1. pls help : font name not applied
      Hi i created a sample web custom control in asp.net but when i tried to set the font properties for the text box , it is not applied , pls help...
    2. [PHP-DEV] When can I expect changes to be applied
      Hello, I requested some time ago that zend_parse_parameters() be altered to accept "Z" as a parameter type in order to be able to retrieve...
    3. php upgrade not being applied - please help!
      Hi, this is my first post to this ng, so please be nice to me! :) ok we're running redhat 7.2 with apache 1.3.26. I had/have php 4.2.1, i...
    4. Adding an XP component after SP1 has been applied
      Windows XP, loaded SP1 from the downloaded .exe file. I decided to add the WWW service to the box at a later date. When I go to add/remove...
    5. CSS style not being applied in browser
      I've begun creating a website for which I am creating custom CSS Styles to apply fonts/size/colour etc to all the text in the pages. Seems easy -...
  3. #2

    Default Re: css not applied + lost image





    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Ian Gordon Guest

  4. #3

    Default Re: css not applied + lost image

    If you are using
    <asp:Image ImageUrl="..." Runat="server"></asp:Image>

    make sure you have Runat="server"


    "Ian Gordon" <xis@dircon.co.uk> wrote in message
    news:EOtYa.4$vy2.842@news.dircon.co.uk...
    > Hello,
    >
    > Here's a weird one that I can't quite put my finger on, but wonder if
    anyone
    > may enlighten me?
    >
    > My ASP.NET site is all working functionally on site, but for some reason,
    > none of the images are being shown in the browser when it's running, and
    > also the style sheet referenced in the html header on each page is not
    being
    > applied to the text. So, it works but looks shoddy...
    >
    > There is nothing wrong with the html - I've taken the code from 'view
    > source' in browser, made a new .htm page from it in the app directory, and
    > when I view it, the images are there and the css formatting is as it
    should
    > be.
    >
    > The browser is IE version 6, and the 'show pictures' option is checked so
    > it't not that that prevents the image from being rendered.
    >
    > Any ideas / pointers much appreciated.
    >
    > Ian
    >
    > [email]ian@xwebservices.net[/email]
    >
    >

    MS News \(MS LVP\) Guest

  5. #4

    Default Re: css not applied + lost image



    With regards, Ian
    [email]ian@xwebservices.net[/email]


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Ian Gordon Guest

  6. #5

    Default Re: css not applied + lost image

    Ian,

    Did you mean to respond? If so, your response was blank.

    John Saunders
    [email]john.saunders@surfcontrol.com[/email]

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    John Saunders Guest

  7. #6

    Default Re: css not applied + lost image

    oops!

    Right, yep, the urls are all correct, and runat="server" is set as
    required. Strange.

    the CSS file link url is also correct -the web forms and css file are in
    same directory, and link is as below:
    <LINK href="mycss.css" type="text/css" rel="stylesheet">

    Why would this not be applying the relevant css formatting at run-time?
    It works fine on 2 other machines I've tested on.

    With regards, Ian
    [email]ian@xwebservices.net[/email]


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Ian Gordon Guest

  8. #7

    Default Re: css not applied + lost image

    "Ian Gordon" <ian@xwebservices.net> wrote in message
    news:Otv0SjdXDHA.1872@TK2MSFTNGP12.phx.gbl...
    > oops!
    >
    > Right, yep, the urls are all correct, and runat="server" is set as
    > required. Strange.
    >
    > the CSS file link url is also correct -the web forms and css file are in
    > same directory, and link is as below:
    > <LINK href="mycss.css" type="text/css" rel="stylesheet">
    >
    > Why would this not be applying the relevant css formatting at run-time?
    > It works fine on 2 other machines I've tested on.
    Ok, now that we're pretty sure that the css file is found and valid (though
    you might want to throw in some JavaScript to confirm this), you have the
    question of why it works differently on different machines. Keep in mind
    that the "c" in "css" stands for "Cascading". You may have inherited styles
    from another stylesheet interfering with yours. Although "mycss.css" may be
    the same on all machines, one of the other stylesheets may not be.

    See if you can create a test <div> at the very top of the .aspx file which
    uses one of the styles from mycss. If that doesn't work, you'll then have to
    track down all the other ways CSS might be giving you something unexpected.
    For instance, styles on the <body> tag, other style rules for "div", etc.
    --
    John Saunders
    Internet Engineer
    [email]john.saunders@surfcontrol.com[/email]


    John Saunders Guest

  9. #8

    Default Re: css not applied + lost image

    Hello Ian,

    John is right here. Since the same code behaviors differently in machines,
    we'd better compare them first. I suggest you:

    1) Create a simplest testing page in that machine to test it could show
    image well
    2) If yes, check CSS inherited tree to make sure that it is the same as
    John suggested.
    3) If no, please create a simple page to just contain one image to test if
    it could be shown.
    4) If still no, my suggest is to reinstall asp.net on your system. It is
    very quick. You could refer to [url]http://support.microsoft.com/?id=306005[/url] for
    detailed steps.

    If the problem still there, please post here. Thanks very much.

    Best regards,
    Yanhong Huang
    Microsoft Online Partner Support

    Get Secure! - [url]www.microsoft.com/security[/url]
    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    !From: Ian Gordon <ian@xwebservices.net>
    !References: <uGu2G8cXDHA.736@TK2MSFTNGP09.phx.gbl>
    !X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
    !Subject: Re: css not applied + lost image
    !Mime-Version: 1.0
    !Content-Type: text/plain; charset="us-ascii"
    !Content-Transfer-Encoding: 7bit
    !Message-ID: <Otv0SjdXDHA.1872@TK2MSFTNGP12.phx.gbl>
    !Newsgroups: microsoft.public.dotnet.framework.aspnet
    !Date: Fri, 08 Aug 2003 11:13:51 -0700
    !NNTP-Posting-Host: actionjackson133.dsl.frii.net 216.17.147.133
    !Lines: 1
    !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
    !Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:166217
    !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    !
    !oops!
    !
    !Right, yep, the urls are all correct, and runat="server" is set as
    !required. Strange.
    !
    !the CSS file link url is also correct -the web forms and css file are in
    !same directory, and link is as below:
    !<LINK href="mycss.css" type="text/css" rel="stylesheet">
    !
    !Why would this not be applying the relevant css formatting at run-time?
    !It works fine on 2 other machines I've tested on.
    !
    !With regards, Ian
    !ian@xwebservices.net
    !
    !
    !*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    !Don't just participate in USENET...get rewarded for it!
    !

    Yan-Hong Huang[MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139