D
Diane Yocom
I must be doing somethign wrong. I've never seen something like this
before, but my font-size and font-weight properties only seem to be working
*after* I hit the submit button. The color works fine, though.
Can anyone give me an idea of what is going on here?
Here's my code:
StyleTest2.aspx
<%@ Page Language="VB" AutoEventWireup="true" CodeFile="StyleTest2.aspx.vb"
Inherits="Family_StyleTest2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<style>
BODY
{
COLOR: navy;
FONT-SIZE: xx-large;
FONT-WEIGHT: bolder;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td>First Name:</td>
<td ><asp:textbox id="txtFirstName" runat="server"></asp:textbox>
</td>
</tr>
</table>
Last Name: <asp:textbox id="Textbox1" runat="server"></asp:textbox>
<asp:Button runat="server" ID="Button1" OnClick="SavePage" Text="Submit" />
<br />
<br />
Hi there! How are you?
<br /><br />
<asp:Label runat="Server" ID="lblSaved"></asp:Label>
</div>
</form>
</body>
</html>
StyleTest2.aspx.vb
Partial Class Family_StyleTest2
Inherits System.Web.UI.Page
Protected Sub SavePage(ByVal sender As Object, ByVal e As System.EventArgs)
Response.Write("Saved")
End Sub
End Class
before, but my font-size and font-weight properties only seem to be working
*after* I hit the submit button. The color works fine, though.
Can anyone give me an idea of what is going on here?
Here's my code:
StyleTest2.aspx
<%@ Page Language="VB" AutoEventWireup="true" CodeFile="StyleTest2.aspx.vb"
Inherits="Family_StyleTest2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<style>
BODY
{
COLOR: navy;
FONT-SIZE: xx-large;
FONT-WEIGHT: bolder;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td>First Name:</td>
<td ><asp:textbox id="txtFirstName" runat="server"></asp:textbox>
</td>
</tr>
</table>
Last Name: <asp:textbox id="Textbox1" runat="server"></asp:textbox>
<asp:Button runat="server" ID="Button1" OnClick="SavePage" Text="Submit" />
<br />
<br />
Hi there! How are you?
<br /><br />
<asp:Label runat="Server" ID="lblSaved"></asp:Label>
</div>
</form>
</body>
</html>
StyleTest2.aspx.vb
Partial Class Family_StyleTest2
Inherits System.Web.UI.Page
Protected Sub SavePage(ByVal sender As Object, ByVal e As System.EventArgs)
Response.Write("Saved")
End Sub
End Class