VB.NET Web Application & Cascading Style Sheets

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fred Nelson

    VB.NET Web Application & Cascading Style Sheets

    Hi:

    I have a VB.NET web application that has been running just fine for several
    months without any cascading style sheets. Suddenly several users have had
    problems with the layout of the screen. In particular some text boxes are
    getting too large and covering buttons and therefore preventing them from
    being pushed.

    It appears that some other application - or perhaps a plug-in - changes the
    default browser settings and then causes problems on my site when people go
    to it.

    I assume that the way to solve this is to use a common cascading style sheet
    everywhere in the system.

    I'm having problems figuring out which font settings for labels relate to
    html codes such as <h1> <h2> when I choose font sizes X-Large and the
    others. The view source doesn't help as that code is actually used in the
    generated html.

    Does anyone know where I could find this information.

    Also - is there a default style sheet somewhere that will cause screen to
    display as it does on my developemnt system.

    Thanks for your help!

    Fred


  • Cor Ligthert

    #2
    Re: VB.NET Web Application &amp; Cascading Style Sheets

    Fred,

    Can you show us some code how you made those CSS files using the VBNet
    language I never saw that, so it interest me.

    You can of course use the VSNet designer for that. VSNet is even a great
    tool for that. Your problem is however probably a user setting in the
    browser, that you can only check by doing the same thing on a computer with
    a fresh (and tested) webbrowser setting.

    A HTML page is affected by a lot of things (what can be in the CSS file).

    Most probably is your problem about this below.

    Fixed settings in cm or inch
    Fixed settings in pixels (when this is done your page will look at almost
    every screen different and changes with almost every change of a setting of
    the client)
    Relative settings (%)

    Although it is in my opinion beside the topic of this newsgroup, do I hope
    this helps something.

    Cor


    Comment

    • Fred Nelson

      #3
      Re: VB.NET Web Application &amp; Cascading Style Sheets

      There is a ".css" file that is created with every VB.NET web application.
      Each html page must have a "link" line inserted to use the .css. If you
      click on the file there is a special editor in VS that makes it easy to edit
      them.

      I've been running without any .css in my web apps and suddenly I have two or
      three people who are having problems with the screen. I've seen this on one
      machine - that my kid plays games on. Somehow once the fonts are changed in
      the browser by another site they mess up my screen. I've had to shutdown
      and restart that machine to fix the problem and this has worked several
      times.

      A customer called last night with the same issue however the
      shutdown/restart did not solve the problem. I'm looking for a very fast fix
      to the problem - some way to change the browser back to its default settings
      then everything I have written will still work.

      Since I'm obviously going to need a .css I need to find out which tags - ex
      <h1> correlate to the font size settings within the properties manager of
      text boxes. (No problem for html that I have written myself).

      I'm going to play around with several pages to see what I can find out
      today. If you have any additional info please pass it along!

      Thanks,

      Fred



      "Cor Ligthert" <notmyfirstname @planet.nl> wrote in message
      news:ep%23ISuGU FHA.4056@TK2MSF TNGP15.phx.gbl. ..[color=blue]
      > Fred,
      >
      > Can you show us some code how you made those CSS files using the VBNet
      > language I never saw that, so it interest me.
      >
      > You can of course use the VSNet designer for that. VSNet is even a great
      > tool for that. Your problem is however probably a user setting in the
      > browser, that you can only check by doing the same thing on a computer[/color]
      with[color=blue]
      > a fresh (and tested) webbrowser setting.
      >
      > A HTML page is affected by a lot of things (what can be in the CSS file).
      >
      > Most probably is your problem about this below.
      >
      > Fixed settings in cm or inch
      > Fixed settings in pixels (when this is done your page will look at almost
      > every screen different and changes with almost every change of a setting[/color]
      of[color=blue]
      > the client)
      > Relative settings (%)
      >
      > Although it is in my opinion beside the topic of this newsgroup, do I hope
      > this helps something.
      >
      > Cor
      >
      >[/color]


      Comment

      • Cor Ligthert

        #4
        Re: VB.NET Web Application &amp; Cascading Style Sheets

        Fred,

        This sound as an unwanted pluggin for IE (spyware).

        Is it an idea trying to install something as Firefox to check if that is
        true?

        (I would in your place definitly place this question in the newsgroup ASPNET
        crossposted to an other HTML related newsgroup).

        Both just ideas.

        Cor


        Comment

        • Fred Nelson

          #5
          Re: VB.NET Web Application &amp; Cascading Style Sheets

          Cor:

          I agree that there is something unwanted running around. The computer in
          our house that has the problem is reverved for our kids who always seem to
          get a lot of junk installed on it. I tried to use that machine today to
          replicate the problem however I'll have to wait for my 8th grader to get
          home and do whatever it is she does.

          Also, I have tired Firefox and Mozilla - both of those show no unwanted
          changes at all.

          I will post my question in the asp.net newsgroup.

          Thanks,

          Fred



          "Cor Ligthert" <notmyfirstname @planet.nl> wrote in message
          news:uWDpSZMUFH A.752@TK2MSFTNG P10.phx.gbl...[color=blue]
          > Fred,
          >
          > This sound as an unwanted pluggin for IE (spyware).
          >
          > Is it an idea trying to install something as Firefox to check if that is
          > true?
          >
          > (I would in your place definitly place this question in the newsgroup[/color]
          ASPNET[color=blue]
          > crossposted to an other HTML related newsgroup).
          >
          > Both just ideas.
          >
          > Cor
          >
          >[/color]


          Comment

          Working...