473,480 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Fontsize and weight from style not working until after submit?

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
Jun 21 '06 #1
0 783

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3280
by: Catherine Lynn Smith | last post by:
OK, I am learning my way around the new DOM, but I am still at a loss on finding a few things. I have an HTML document that links to a stylesheet. /* START STYLESHEET EXAMPLE */ /*...
2
1904
by: toddaa | last post by:
I'm sorry if this has previously asked and answered. I have been searching for a while and have come up empty. I am trying to write a function which will return the font size attribute for the...
5
5469
by: Tobin Fricke | last post by:
In posting to a blog, I would like to bold every list item (<li>). Because I cannot influence the <head>...</head> section of the HTML document, I can neither add a <style>...</style> block, nor...
1
1506
by: tshad | last post by:
I am running a program to put a captcha image on my string and am trying to make sure all the characters fit. The problem is the size seems to be wrong. What I am doing is starting from the...
4
22044
by: jnag | last post by:
Hello, Through an onClick() event, I have an inline function to change the font size of the page (actually, I need to do this for the entire website). I have this defined in the header.cfm file...
6
7917
by: Adam Risser | last post by:
Hi, I am writing a function to change the font-size but I am running into a snag. I cannot get the current font-size of the body. Here is a link to a simplified test case ...
2
25302
by: Steve Richter | last post by:
Why would this embedded javascript not work? <span onmouseover="this.style.font-weight='bold';" >line 3</span> this does: <span onmouseover="this.style.color='blue';" >line 1</span> thanks,
1
3237
by: mukeshrasm | last post by:
Hi I am having problem like I have four forms which displayed when a tab is clicked. for all these forms initially I made style.display="none" inside div tag and then javascript function is used on...
0
7037
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6904
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7034
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6732
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4472
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2990
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1294
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
174
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.