asp.net textbox properities are not being saved

Hello, for some reason, any property I set on one of my textfields is not being saved.  Every think looks good in developement mode, but when I click debug and run, the controls revert to something else.  I dont have any css sheet tied to this page, so this is really puzzling.  What else could be controlling my control properties.  I have included the page html.  
<%@ Register TagPrefix="uc1" TagName="Training_Header" Src="Training_Header.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Training_Login.aspx.vb" Inherits="Training_Matrix.Training_Login"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>Training_Login</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body leftMargin="2" topMargin="2" onload="document.all.txtuser.focus();">
		<form id="Form1" method="post" runat="server">
			<TABLE id="Table1" style="WIDTH: 100%" cellSpacing="0" cellPadding="0" width="940" border="0">
				<tr>
					<td colSpan="3"><uc1:training_header id="Training_Header1" runat="server"></uc1:training_header></td>
				</tr>
				<TR>
					<TD style="BORDER-RIGHT: #b0c4de 1px solid; BORDER-TOP: #b0c4de 1px solid; BORDER-LEFT: #b0c4de 1px solid; BORDER-BOTTOM: #b0c4de 1px solid"
						borderColor="#b0c4de" colSpan="3">
						<TABLE id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="1">
							<TR>
								<TD align="center"><BR>
									<TABLE id="Table3" style="WIDTH: 500px" cellSpacing="0" cellPadding="0" width="500">
										<TR> <!-- This is top of oval background image on right panel-->
											<TD style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(images\f_top.gif); BACKGROUND-REPEAT: no-repeat; HEIGHT: 32px"
												align="center"><asp:label id="Label6" runat="server" Font-Names="Arial" ForeColor="#0033CC" Font-Bold="True">Login Information</asp:label></TD>
										</TR>
										<TR>
											<TD vAlign="top">
												<TABLE id="Table4" style="WIDTH: 499px; HEIGHT: 180px" cellSpacing="0" cellPadding="0">
													<TR>
														<TD style="BORDER-TOP-WIDTH: 1px; BORDER-RIGHT: #acacac 1px solid; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #acacac; BORDER-LEFT: #acacac 1px solid; BORDER-TOP-COLOR: #acacac"
															vAlign="top" width="579" bgColor="#ffffff" colSpan="2">
															<P><asp:label id="Label2" runat="server" Font-Names="Arial" ForeColor="Red" Font-Bold="True" Font-Size="12pt">Please use your computer username and password!</asp:label></P>
															<table>
																<TR>
																	<TD><font>Username:</font></TD>
																	<TD>
																		<asp:textbox id="txtuser" runat="server" Width="32px"></asp:textbox></TD>
																</TR>
																<TR>
																	<TD><font>Password:</font></TD>
																	<TD><asp:textbox id="txtpass" runat="server" TextMode="Password"></asp:textbox></TD>
																</TR>
																<tr>
																	<td colSpan="2">
																		<table cellSpacing="0" cellPadding="0" width="100%">
																			<tr>
																				<td colSpan="2"><asp:label id="lblerror" runat="server" Font-Names="Arial" ForeColor="Red" Visible="False"></asp:label></td>
																			</tr>
																			<tr>
																				<td width="25%"></td>
																				<td><asp:button id="btnlogin" runat="server" Font-Names="Arial" Width="104px" Text="Login"></asp:button></td>
																			</tr>
																		</table>
																	</td>
																</tr>
															</table>
														</TD>
													</TR>
												</TABLE>
											</TD>
										</TR>
										<TR> <!-- This is bottom of oval background image on right panel-->
											<TD style="BACKGROUND-POSITION: left top; BACKGROUND-IMAGE: url(images\f_bottom.gif); BACKGROUND-REPEAT: no-repeat; HEIGHT: 15px"
												vAlign="top" align="center"></TD>
										</TR>
									</TABLE>
									<BR>
								</TD>
							</TR>
						</TABLE>
					</TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>

Open in new window

tentavariousAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

urir10Commented:
Can you post the code behind?
0
tentavariousAuthor Commented:
I took out some code that i didnt want public, but i dont see anywhere in the code which would retain control properties.  the same thing is happening on aonother page where I changed the background color of all the controls and when I view the page in the browser all the background colors are white.  This makes me wonder if its in the browser or some global setting I a missing for my project.

Public Class Training_Login
    Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

    'This call is required by the Web Form Designer.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

    End Sub
    Protected WithEvents Label6 As System.Web.UI.WebControls.Label
    Protected WithEvents Label2 As System.Web.UI.WebControls.Label
    Protected WithEvents txtpass As System.Web.UI.WebControls.TextBox
    Protected WithEvents lblerror As System.Web.UI.WebControls.Label
    Protected WithEvents btnlogin As System.Web.UI.WebControls.Button
    Protected WithEvents txtuser As System.Web.UI.WebControls.TextBox

    'NOTE: The following placeholder declaration is required by the Web Form Designer.
    'Do not delete or move it.
    Private designerPlaceholderDeclaration As System.Object

    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
        'CODEGEN: This method call is required by the Web Form Designer
        'Do not modify it using the code editor.
        InitializeComponent()
    End Sub

#End Region
     Dim oracle_function As global_db_tools
    Dim get_conn As New connection

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Put user code to initialize the page here
        If Not Page.IsPostBack Then
            If Not Request.QueryString("redirect") Is Nothing Then
                redirectpage = Request.QueryString("redirect")
            Else
                redirectpage = "Home.aspx"
            End If
        End If
    End Sub
    Public Property redirectpage() As String
        Get
            Return viewstate("rpage")
        End Get
        Set(ByVal Value As String)
            viewstate("rpage") = Value
        End Set
    End Property
    Private Sub btnlogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnlogin.Click
        Try
            If Me.txtuser.Text.Length < 2 Then
                lblerror.Text = "Enter your user name!"
                lblerror.Visible = True
                Exit Sub
            End If
            If Me.txtpass.Text.Length < 2 Then
                lblerror.Text = "Please enter your password!"
                lblerror.Visible = True
                Exit Sub
            End If
            obj_details = obj.AuthenticateADUser("xxxxxxx", txtuser.Text, txtpass.Text)
            If obj_details.Status = True Then
                'Valid user
                If check_security_level() Then
                    'Valid security level
                    Server.Transfer(redirectpage)
                Else
                    lblerror.Text = "You do not have access to this screen!"
                    lblerror.Visible = True
                End If
            Else
                lblerror.Text = "Invalid username/password, please try again!"
                lblerror.Visible = True
                Exit Sub
            End If
        Catch ex As Exception
            lblerror.Text = ex.Message
            lblerror.Visible = True
        End Try
    End Sub
    Function check_security_level() As Boolean
        Dim results As Boolean
        Dim details() As String
        results = False
        Dim ssql As String = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
        Try
            oracle_function = New global_db_tools(get_conn.oracleconnection())
            details = oracle_function.get_scalar(ssql).Split("~")
            If details.Length > 0 Then
                'Check level
             
            Else
                lblerror.Text = "Failure processing login!"
                lblerror.Visible = True
                results = False
            End If
        Catch ex As Exception
            results = False
            lblerror.Text = ex.Message
            lblerror.Visible = True
        End Try
        Return results
    End Function
End Class

Open in new window

0
tentavariousAuthor Commented:
This is very weird, none of my pages for this project are working anymore.  If i change a textbox background property to orange it shows up white when i run it.  This project worked 2 days ago.  I actually went back to a backup I saved a month ago and when I run it, same issue.
0
tentavariousAuthor Commented:
I found the solution myself.  I had gotten a virus that was affecting other things as well.  I ended up doing a system restore in safe mode and that fixed it
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.