Web Control Display problem

  • Thread starter Thread starter Gary Coutts
  • Start date Start date
G

Gary Coutts

Hi,

I have just started developing web application using C#/ASP.Net and I am
have a
problem.

I have generated a web form (using .NET 2003) with various buttons, labels,
drop-downs etc ( just to see what they would look like on screen) but when I
run it in Explorer the various controls are not where the are in the design
form.

Explorer has all the current updates and everything is running under Windows
2K.

Has anyone come across this problem or know what I am doing wrong?


Best Regards

Gary Coutts
 
I do not think ASP.NET is registered with IIS server, probably because you
installed
IIS after .NET framework?
Try running this from the command line(Start->Run->cmd):
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
 
Gary,

You have sent this message yesterday to the newsgroup general.

After some questions from Dennis you have showed the page you where using.

However, in that was only one button, while you where talking in your
question about more controls.

Where was that button placed when you was running it and where had you
expected it?

Cor
 
Cor,

It was me who asked Gary to create this page with one button, because we
needed no more than
that to demonstrate the problem.
 
Dennis,

I checked it and saw that I misunderstood that part, however Gary did not
tell if that page had the same effects, otherwise we could have done that
ourselfs as well (You did not ask it, however that is for me obvious).

Sorry for my misstake, however the problem stays the same.

Cor
 
Cor/Dennis,

I have noticed that fonts are bigger, for labels and radio button text,
when displayed using Explorer than when displayed in the .NET design view.

Normal buttons seem to be uneffected.



Gary
 
Gary,
I have noticed that fonts are bigger, for labels and radio button text,
when displayed using Explorer than when displayed in the .NET design view.

That can be just a setting of IE.
Every user can set his own preferences in IE.
The controls are in a way all normal HTML controls with some additiion.

What you can do is when you have showed it in IE do a right click and than
see what code is generated with "see sourcecode", than it explains maybe
something more for you.

Cor
 
Cor

I reset Explorer to Factory Defaults when I first had this problem and the
problem still exits.

Cheers

Gary
 
Gary,

Why do you have this problem and others not. Did you take that source from
your browser, had a look for it and showed it than again in your browser?

However you said the button had not the problem, did you tried a new page,
set a label on it, with text and tried what was the result.

(Maybe it is something in the standard CSV file).

Cor
 
Hi Dennis/Cor,

I did try it.

"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i"

I used the View-Text Size and set the text size to the same as the size in
design mode and it all displays correctly. I assumed that the font size
would be set to the size set in design mode not the one set by Explorer. Is
there away to protect against this, as if a user sets the text size to a
different value it will alter how the page will be displayed.

Thanks for all your help.

Cheers

Gary
 
Back
Top