When i click the submit button using the code:
Partial Public Class confirmationInherits System.Web.UI.Page
Public Property Label2 As Object
Protected Sub page_load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
If PreviousPage IsNot Nothing ThenLabel2.Text = "Thanks for registering "
End IfEnd Sub
End Class
On the confirmation.aspx page nothing shows up!!
This is my code for the registration page:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="registration.aspx.vb" Inherits="Default2" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title></title><style type="text/css">#reset1 {width: 103px;}</style></head><body><form id="Registrationform1" runat="server"><div></div><p>Username:<asp:TextBox ID="username" runat="server" Width="249px"></asp:TextBox></p><p>Password:<asp:TextBox ID="password" runat="server" TextMode="Password" Width="194px"></asp:TextBox></p><p>Re-confirm Password:<asp:TextBox ID="password2" runat="server" TextMode="Password" Width="216px"></asp:TextBox></p><p>Name:<asp:TextBox ID="name" runat="server" Width="271px"></asp:TextBox></p><p>Street Address:<asp:TextBox ID="street" runat="server" Width="333px"></asp:TextBox></p><p>State:<asp:DropDownList ID="state" runat="server" AutoPostBack="True"><asp:ListItem></asp:ListItem><asp:ListItem Value="North Carolina"></asp:ListItem><asp:ListItem Value="California"></asp:ListItem><asp:ListItem Value="New York"></asp:ListItem><asp:ListItem Value="Georgia"></asp:ListItem><asp:ListItem Value="Texas"></asp:ListItem></asp:DropDownList></p><p>City:<asp:DropDownList ID="city" runat="server" AutoPostBack="True"><asp:ListItem></asp:ListItem><asp:ListItem Value="Raleigh"></asp:ListItem><asp:ListItem Value="Fayetteville"></asp:ListItem><asp:ListItem Value="Charlotte"></asp:ListItem><asp:ListItem Value="Lumberton"></asp:ListItem><asp:ListItem Value="Jacksonville"></asp:ListItem><asp:ListItem Value="Albany"></asp:ListItem><asp:ListItem Value="brooklyn"></asp:ListItem><asp:ListItem Value="Bronx"></asp:ListItem><asp:ListItem Value="Queens"></asp:ListItem><asp:ListItem Value="Manhattan"></asp:ListItem><asp:ListItem Value="Los Angeles"></asp:ListItem><asp:ListItem Value="San Diego"></asp:ListItem><asp:ListItem Value="Irwin"></asp:ListItem><asp:ListItem Value="San Fransisco"></asp:ListItem><asp:ListItem Value="Long Beach"></asp:ListItem><asp:ListItem Value="Atlanta"></asp:ListItem><asp:ListItem Value="Savannah"></asp:ListItem><asp:ListItem Value="Augusta"></asp:ListItem><asp:ListItem Value="Columbus"></asp:ListItem><asp:ListItem Value="Valdosta"></asp:ListItem><asp:ListItem Value="Dallas"></asp:ListItem><asp:ListItem Value="Houston"></asp:ListItem><asp:ListItem Value="Austin"></asp:ListItem><asp:ListItem Value="Galveston"></asp:ListItem><asp:ListItem Value="Killeen"></asp:ListItem></asp:DropDownList></p><p>Zipcode:<asp:TextBox ID="zipcode" runat="server"></asp:TextBox></p><p aria-checked="undefined" aria-multiselectable="False" aria-orientation="vertical"><asp:RadioButton ID="rbtnMale" runat="server" GroupName="gender" Text="Male" /> <asp:RadioButton ID="rtbnFemale" runat="server" GroupName="gender" Text="Female" /><br /></p><p aria-checked="undefined" aria-multiselectable="False" aria-orientation="vertical"><strong>Hobbies</strong></p><p><asp:CheckBox ID="reading" runat="server" Text="Reading" /> <asp:CheckBox ID="watchingTV" runat="server" Text="Watching TV" /> <asp:CheckBox ID="biking" runat="server" Text="Biking" /> <asp:CheckBox ID="stampcollecting" runat="server" Text="Stamp Collecting" /> <asp:CheckBox ID="cooking" runat="server" Text="Cooking" /></p><p><asp:Button ID="submit1" runat="server" Text="Submit" Width="91px" PostBackUrl="~/confirmation.aspx" /> <asp:Button ID="Clear" runat="server" Text="Clear" Width="91px" /></p></form></body></html>