By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,403 Members | 855 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,403 IT Pros & Developers. It's quick & easy.

VB.NET Web Application & Cascading Style Sheets

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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
Nov 21 '05 #2

P: n/a
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" <no************@planet.nl> wrote in message
news:ep****************@TK2MSFTNGP15.phx.gbl...
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

Nov 21 '05 #3

P: n/a
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
Nov 21 '05 #4

P: n/a
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" <no************@planet.nl> wrote in message
news:uW*************@TK2MSFTNGP10.phx.gbl...
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

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.