ASP.Net display problems

  • Thread starter Thread starter Niks
  • Start date Start date
N

Niks

Hi,
I have just now installed VS.NET on my system and created basic .aspx
files using
<asp:label id="Message1" font-size="16" font-bold="true"
forecolor="red" runat=server>Test</asp:label>
tags to test the pages.

When I save and run the pages, I am able to see the text but not the
font or color which i have specified in ASP.Label. If I view source
the page I see the tags correctly.

I have tested this page on another system, and it works perfectly
there.

Do anyone have any ideas on this problem.

Thanks,
 
check you browser/ system configuration.. there's a font list
if you dont have any of the fonts specified for a given text.. then the
default font for the browser is used.

again on how your style attribute works is also browser dependant... its all
inline css... and not all browsers render it correctly...specially the old
ones...

HTH

HD
 
Thanks Hermit for the info.

Problem is something different,
I have created a page using some elements inlcuding calendars and Data
Grids the page is as follows :

<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="ShowOrders.aspx.vb" Inherits="OrdersWeb.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 49px; POSITION:
absolute; TOP: 43px" runat="server" Width="139px">Choose
Customer</asp:Label>
<asp:TextBox id="txtStartDate" style="Z-INDEX: 108; LEFT: 271px;
POSITION: absolute; TOP: 90px" runat="server"></asp:TextBox>
<asp:Calendar id="OrderEndDate" style="Z-INDEX: 106; LEFT: 508px;
POSITION: absolute; TOP: 130px" runat="server" Width="220px"
SelectedDate="2002-05-01" VisibleDate="2002-05-01" Height="200px"
BackColor="White" DayNameFormat="FirstLetter" ForeColor="#003399"
Font-Size="8pt" Font-Names="Verdana" BorderColor="#3366CC"
CellPadding="1" BorderWidth="1px">
<TodayDayStyle ForeColor="White"
BackColor="#99CCCC"></TodayDayStyle>
<SelectorStyle ForeColor="#336666"
BackColor="#99CCCC"></SelectorStyle>
<NextPrevStyle Font-Size="8pt"
ForeColor="#CCCCFF"></NextPrevStyle>
<DayHeaderStyle Height="1px" ForeColor="#336666"
BackColor="#99CCCC"></DayHeaderStyle>
<SelectedDayStyle Font-Bold="True" ForeColor="#CCFF99"
BackColor="#009999"></SelectedDayStyle>
<TitleStyle Font-Size="10pt" Font-Bold="True" Height="25px"
BorderWidth="1px" ForeColor="#CCCCFF" BorderStyle="Solid"
BorderColor="#3366CC" BackColor="#003399"></TitleStyle>
<WeekendDayStyle BackColor="#CCCCFF"></WeekendDayStyle>
<OtherMonthDayStyle ForeColor="#999999"></OtherMonthDayStyle>
</asp:Calendar>
<asp:Label id="Label3" style="Z-INDEX: 103; LEFT: 557px; POSITION:
absolute; TOP: 45px" runat="server" Width="139px">Choose End
Date</asp:Label>
<asp:Label id="Label2" style="Z-INDEX: 102; LEFT: 293px; POSITION:
absolute; TOP: 43px" runat="server" Width="139px">Choose Start
Date</asp:Label>&nbsp;
<asp:DropDownList id="ddlCustomers" style="Z-INDEX: 104; LEFT:
39px; POSITION: absolute; TOP: 91px" runat="server" Width="161px"
DataMember="Customers"></asp:DropDownList>
<asp:Calendar id="OrderStartDate" style="Z-INDEX: 105; LEFT: 235px;
POSITION: absolute; TOP: 131px" runat="server" Width="220px"
SelectedDate="2000-07-01" VisibleDate="2000-07-01" Height="200px"
BackColor="White" DayNameFormat="FirstLetter" ForeColor="#003399"
Font-Size="8pt" Font-Names="Verdana" BorderColor="#3366CC"
CellPadding="1" BorderWidth="1px">
<TodayDayStyle ForeColor="White"
BackColor="#99CCCC"></TodayDayStyle>
<SelectorStyle ForeColor="#336666"
BackColor="#99CCCC"></SelectorStyle>
<NextPrevStyle Font-Size="8pt"
ForeColor="#CCCCFF"></NextPrevStyle>
<DayHeaderStyle Height="1px" ForeColor="#336666"
BackColor="#99CCCC"></DayHeaderStyle>
<SelectedDayStyle Font-Bold="True" ForeColor="#CCFF99"
BackColor="#009999"></SelectedDayStyle>
<TitleStyle Font-Size="10pt" Font-Bold="True" Height="25px"
BorderWidth="1px" ForeColor="#CCCCFF" BorderStyle="Solid"
BorderColor="#3366CC" BackColor="#003399"></TitleStyle>
<WeekendDayStyle BackColor="#CCCCFF"></WeekendDayStyle>
<OtherMonthDayStyle ForeColor="#999999"></OtherMonthDayStyle>
</asp:Calendar>
<asp:TextBox id="txtEndDate" style="Z-INDEX: 107; LEFT: 549px;
POSITION: absolute; TOP: 86px" runat="server"></asp:TextBox>
<asp:Button id="cmdShow" style="Z-INDEX: 109; LEFT: 561px;
POSITION: absolute; TOP: 342px" runat="server" Text="Show
Orders"></asp:Button>
<asp:DataGrid id="dgOrders" style="Z-INDEX: 110; LEFT: 12px;
POSITION: absolute; TOP: 372px" runat="server" Width="740px"
Height="217px">
<Columns>
<asp:EditCommandColumn ButtonType="LinkButton"
UpdateText="Update" HeaderText="Edit" CancelText="Cancel"
EditText="Edit"></asp:EditCommandColumn>
</Columns>
</asp:DataGrid>
<asp:CompareValidator id="CompareValidator1" style="Z-INDEX: 111;
LEFT: 39px; POSITION: absolute; TOP: 140px" runat="server"
Width="146px" Height="34px" ErrorMessage="StartDate must be less than
Jan 1 2001" ControlToValidate="txtStartDate" Operator="LessThanEqual"
Type="Date" ValueToCompare="1/1/2001"></asp:CompareValidator>
</form>
</body>
</HTML>


When i run this page on the browser i see only Label elements and
nothing else. Page is blank. But When View source i see all the code.
If I run the same page on different machine it works fine ...I user
I.E 6.0

Thanks
 
Back
Top