Posted on: 7/9/2013 10:06:25 AM | Views : 245

Hi,
I have the following code;
Dim CrtDate As New System.Data.SqlClient.SqlCommand(("Select CreateDate, UserId From dbo.QryResetPasswordDet WHERE UserName=@UserName"), conn) CrtDate.Parameters.AddWithValue("@UserName", UserName.text) I receive an error message on Username - name 'Username' is not declared.
On my form I have;
<asp:TextBox ID="UserName" runat="server" CssClass="field"></asp:TextBox> When I change to design view and click the textbox on the properties it states;
PasswordRecovery.UserNameTemplate.UserName
Any idea why I receive the error message?
Thanks
...

Go to the complete details ...