Help again

fatihyesilgul

New Member
Ok i posted a message earlier but thistimew i have a differnt problem I dont have any errors on the page but i cant see and of my form feilds.<BR><BR>Heres the code again:<BR><BR><%@ Import Namespace="System.Data" %><BR><BR><script language="VB" runat="server"> <BR><BR>Sub Button_Click( s As Object, e As EventArgs )<BR> Dim dstPasswords As DataSet<BR> Dim dtblPasswords As DataTable<BR> Dim arrUsers() As DataRow<BR> Dim drowNew As DataRow<BR><BR> If IsValid Then<BR> dstPasswords = New DataSet()<BR> dstPasswords.ReadXml( MapPath( "../Passwords.xml" ) )<BR> dtblPasswords = dstPasswords.Tables( 0 )<BR> arrUsers = dtblPasswords.Select( "Name='" & txtUsername.Text & "'" )<BR> If arrUsers.Length > 0 Then<BR> lblMessage.Text = "Username Already Registered!"<BR> Else<BR> drowNew = dtblPasswords.NewRow()<BR> drowNew( "Name" ) = txtUsername.Text<BR> drowNew( "Password" ) = txtPassword.Text<BR> dtblPasswords.Rows.Add( drowNew )<BR> dstPasswords.WriteXml( MapPath( "../Passwords.xml" ) )<BR> FormsAuthentication.RedirectFromLoginPage( txtUsername.Text, False )<BR> End If<BR> End If<BR>End Sub<BR><BR></Script><BR><BR><html><BR><head><title>Register.aspx</title></head><BR><body><BR><form Runat="Server"><BR><BR><h2>Please Register</h2><BR><BR><asp:Label<BR> ID="lblMessage"<BR> ForeColor="Red"<BR> Font-Bold="True"<BR> EnableViewState="False"<BR> Runat="Server" /><BR><p><BR><b>Username:</b><BR><BR><BR><asp:TextBox<BR> ID="txtUsername"<BR> Runat="Server" /><BR><asp:RequiredFieldValidator<BR> ControlToValidate="txtUsername"<BR> Text="Required!"<BR> Runat="Server" /><BR><p><BR><b>Password:</b><BR><BR><BR><asp:TextBox<BR> ID="txtPassword"<BR> Runat="Server" /><BR><asp:RequiredFieldValidator<BR> ControlToValidate="txtPassword"<BR> Text="Required!"<BR> Runat="Server" /><BR><p><BR><asp:Button<BR> Text="Register!"<BR> OnClick="Button_Click"<BR> Runat="Server" /><BR><BR></Form><BR></body><BR></html><BR>.no it does not workHmm, well I just copied all your code into a .aspx file and the form fields appear for me. Any chance your server isn't configured correctly? <BR><BR>])ry
 
Back
Top