Thanks for your links.
Anyway I'm using 2.0 and it's an home project so.. I will certainly go with
"Peter Blum" <PLBlum@Blum.info> wrote in message
news:Ors65TJOGHA.4052@TK2MSFTNGP15.phx.gbl...
> Hi Lloyd,
>
> There are a couple of solutions for ASP.NET 1.1:
>
> 1. Use server side validation when the page is submitted to fire the
> Validate() method of only the desired validators. This article -
>
http://aspalliance.com/699 - shows you how (along with many other
> validation questions). See the topic "Several buttons associated with
> their own validators".
>
> 2. I built a replacement to the ASP.NET validators that fixes the many
> limitations I've found. Its called "Professional Validation And More" (
>
http://www.peterblum.com/vam/home.aspx ). My validators have validation
> groups. You simply assign a group name to the Group property on the submit
> button and the associated validators. There are an enormous number of
> other improvements I've made to validation and I include a utility to
> quickly convert a page from your existing validators to mine.
>
> --- Peter Blum
>
www.PeterBlum.com > Email: PLBlum@PeterBlum.com
> Creator of "Professional Validation And More" at
>
http://www.peterblum.com/vam/home.aspx >
> "Lloyd Dupont" <net.galador@ld> wrote in message
> news:uTwWi56NGHA.2036@TK2MSFTNGP14.phx.gbl...
>> On my page the user is ask to set of question.
>> Say there I have 2 controls like that
>> == pseudo-C#-code for my control ==
>> class MyControl : CompositeControl
>> {
>> TextBox text;
>> LinkButton button
>>
>> override void CreateChildControl()
>> {
>> text = new TextBox();
>> text.ID = "text"
>> Controls.Add(text);
>>
>> button = new LinkButton();
>> buton.Text = submit;
>> button.Click = HCSubmit;
>> button.ID = "submit";
>>
>> // == problem here
>> RequieredFieldValidator rfv = new RequiredFieldValidator();
>> rfv.ControlToVerify = "text";
>> Control.Add(rfv);
>> }
>> }
>> As you could see, text should have some value in it.
>> Now let's say I have 2 such control on the page and the user fill one and
>> press the submit link button, it won't be able to submit because the
>> other field would be empty.
>> Which is annoying.
>>
>> Is there a way to limit the scope of the required field validator?
>> I coukld just remove it, but it provide nice features, so I'm wondering
>> if there is a solution to this problem, I have heard that ASP.NET 2.0
>> solve it...
>>
>
>