[Mono-dev] [ASP.NET] - Bug for Validators + Templates in UpdatePanel via MainSoft's Ajax extension (Possibly valid for .NET too)
Onur Gumus
emperon at gmail.com
Wed Nov 28 16:10:27 EST 2007
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20071128/8a1d6a9e/attachment.html
More information about the Mono-devel-list
mailing list