Hello, When I try ASP.NET Validators inside Update Panel they work except when I use them within Templates like in FormView. The following code looks problematic if it is in an UpdatePanel and you first submit invalidly then make it valid & submit then make it again invalid&submit it. It breaks up :
<asp:FormView runat="server" ID="FormView1" DataSourceId="AdminDataSource" DefaultMode="Insert"> <InsertItemTemplate> <asp:Label SkinId="form" runat="server" Text="Kullanıcı Adı:" AssociatedControlId = "UserNameTextBox" /> <asp:TextBox ID="UserNameTextBox" ValidationGroup="a" runat="server" Text='<%# Bind("UserName") %>'></asp:TextBox><br/ > <asp:Button ID="OkButton" Text="Tamam" SkinId="form" CausesValidation="True" CommandName="Insert" RunAt="Server" /> <asp:RequiredFieldValidator runat="server" ControlToValidate="UserNameTextBox" Display="Static" EnableClientScript="true">*</asp:RequiredFieldValidator> </InsertItemTemplate> </asp:FormView> However it works if it is not in UpdatePanel or Validator is not in a Template.
_______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list