Why not set the ValidationGroup property of the textbox so the validation occurs only when the according button is pressed?
>Well, I have another control in the form where AutoPostBack="True" (a text
>box for searching).
>
>Exactly when is this type of validation executed? And how do I then override
>it, so the text is not written before the accept button is triggered?
>
>
>"N" <nkohli@glgroup.com> wrote in message
>news:OEY1XMkFIHA.2004@TK2MSFTNGP06.phx.gbl...
>>I will rather check if there is already a control on the page that is
>>causing auto post back.
>>
>> "Mansi Shah" <mansi@devdex.com> wrote in message
>> news:uiFvSCgFIHA.4228@TK2MSFTNGP02.phx.gbl...
>>>
>>> HI Preben,
>>>
>>> You can chceck it by setting "AutoPostBack" property of textbox to
>>> "true", if it can help your coding logic..
>>>
>>>
>>> Regards,
>>> Mansi Shah.
>>>
>>> *** Sent via Developersdex
http://www.developersdex.com ***
>>
>>
>
>
>