Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Prism ASP.net Webseiten in Mozilla anders als im Explorer (https://www.delphipraxis.net/100270-asp-net-webseiten-mozilla-anders-als-im-explorer.html)

eddie11 25. Sep 2007 13:58


ASP.net Webseiten in Mozilla anders als im Explorer
 
Hi,

habe meine erste Webanwendung mit ASP.Net versucht, bin auch soweit ganz zufrieden. Aber wenn ich Controls aus dem Bereich "Web-Steuerelemente" benutze, dann werden diese nur im M$-Internet-Explorer so dargestellt wie in der IDE, Mozilla-Firefox ignoriert die Attribute wie z.B. Hintergrundfarbe etc. Muss ich da in der Seitenkonfiguration irgendwas eingeben?

danke

mkinzler 25. Sep 2007 14:08

Re: ASP.net Webseiten in Mozilla anders als im Explorer
 
Wie werden die Atribute (Farbe usw) gesetzt? (CSS, ...)

eddie11 25. Sep 2007 14:11

Re: ASP.net Webseiten in Mozilla anders als im Explorer
 
nö, nicht via css, sondern direkt im Objektinspektor, dort kann ich die entsprechenden Eigenschaften setzen

phXql 25. Sep 2007 14:11

Re: ASP.net Webseiten in Mozilla anders als im Explorer
 
Er meinte im resultierenden HTML-Source.

eddie11 25. Sep 2007 14:21

Re: ASP.net Webseiten in Mozilla anders als im Explorer
 
das ist der Quellcode, den ich im Explorer bzw. Mozilla zu sehen bekomme:

Delphi-Quellcode:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
  <head>
    <title></title>
  </head>

  <body>
     <form name="_ctl0" method="post" action="WebForm1.aspx" id="_ctl0">
<input type="hidden" name="__VIEWSTATE" value="dDw5NjU1MTU1Ozs+60PFCP4OCm78ztaXO2jw6xg0Fng=" />

      <input type="submit" name="Button1" value="Button" id="Button1" style="Z-INDEX: 1; LEFT: 76px; POSITION: absolute; TOP: 74px" />
     </form>
  </body>
</html>
nur im Explorer ist der Button rot, im Mozilla grau wie bei Windoof standard.

mkinzler 25. Sep 2007 14:24

Re: ASP.net Webseiten in Mozilla anders als im Explorer
 
Steckt aber nicht in diesem Style

eddie11 25. Sep 2007 14:26

Re: ASP.net Webseiten in Mozilla anders als im Explorer
 
wenn ich mir die entsprechende .aspx-Datei ansehe, dann stehet da folgendes drin:
Delphi-Quellcode:
<%@ Page language="c#" Debug="true" Codebehind="WebForm1.pas" AutoEventWireup="false" Inherits="WebForm1.TWebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
  <head>
    <title></title>
  </head>

  <body>
     <form runat="server">
      <ASP:Button id="Button1" style="Z-INDEX: 1; LEFT: 76px; POSITION: absolute; TOP: 74px" runat="server" text="Button" backcolor="Red" forecolor="White"></ASP:Button>
     </form>
  </body>
</html>

eddie11 25. Sep 2007 15:27

Re: ASP.net Webseiten in Mozilla anders als im Explorer
 
anscheinend gibt der IIs oder Cassini (habe beide probiert) an den IE was anderes raus als an Mozilla. Wenn ich nämlich die Seite im IE öffne, dann per 'datei' -> 'speichern unter' die Seite speichere und sie dann anschliessend im Mozilla öffne, dann wird sie auch da richtig angezeigt...

eddie11 25. Sep 2007 16:37

Re: ASP.net Webseiten in Mozilla anders als im Explorer
 
ich hab's gefunden!!!! Das Zauberwort heißt BrowserCaps!!!

hier BrowserCaps kann man's nachlesen


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:49 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz