cEmmettHodgesq
New Member
i am new to asp.net and i am setting required field validator and it is showing me an errorerror is:\[code\]Unable to find control id 'txtFirstName' referenced by the 'ControlToValidate' property of 'RequiredFieldValidator1'. \[/code\]code is:\[code\] <tr> <td align="right" style="padding-right: 5px; width: 50%;"> <asp:Label ID="lblFirstName" runat="server" Text="FIRSTNAME :"></asp:Label> </td> <td align="left" style="padding-left: 5px; width: 50%;"> <asp:TextBox ID="txtFistName" runat="server" Width="70%"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFirstName" ErrorMessage="You can't leave this empty."></asp:RequiredFieldValidator> </td> </tr>\[/code\]can any help me on this flow....,