You are welcome, Tarun. My validation controls support a confirm prompt
feature too. If you are trying to save time, having tools that avoid custom
"Tarun Upadhyaya" <t a r u n u p a d h y a y a @ y a h o o . c o . i n>
wrote in message news:1E131763-F9D6-4A7C-99FB-7D9C8EC2A85F@microsoft.com...
> Oh man, that was so simple.
> Thanks a lot Mr Blum.
> I had seen you validation controls and beleive me, they are rocking.
>
> Thanks again you have saved many days.
>
>
> --
> Tarun Upadhyaya
> MCP (VB.NET & SQL Server 2000)
> NB: If you find my post helpful pls click the yes button on top.
>
>
> "Peter Blum" wrote:
>
>> Let's change your logic slightly:
>>
>> onclick='if (!confirm(message)) return false;if
>> (typeof(Page_ClientValidate)
>> == 'function') Page_ClientValidate(); '
>>
>> --- Peter Blum
>>
www.PeterBlum.com >> Email: PLBlum@PeterBlum.com
>> Creator of "Professional Validation And More" at
>>
http://www.peterblum.com/vam/home.aspx >>
>> "Tarun Upadhyaya" <t a r u n u p a d h y a y a @ y a h o o . c o . i n>
>> wrote in message
>> news:BFD73B2B-B8C7-438B-B2A9-79859CEE1363@microsoft.com...
>> > Hi,
>> > I am facing strange problem
>> > I read Scott mitchell's article about ASP.NET and javascript at
>> >
>> >
http://www.msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/clientsidescript.asp
>> >
>> > where he has talked about creating a base class for displaying alerts
>> > and
>> > confirms after and before postbacks respectively.
>> >
>> > I used that Base class to inherit on of my code behind classes and and
>> > i
>> > also called the method to attach a confirm (javascript method ) script
>> > on
>> > a
>> > button's onclick event .
>> > The page works fine so long as there are no validations on the page but
>> > as
>> > soon as i incorporate validations the confirm box still apears but the
>> > page
>> > validations are skipped and the form is posted back.
>> >
>> > This happnes since asp.net also inserts some code for validation after
>> > my
>> > code for client side validation methods
>> > it looks somethings like this
>> >
>> > onclick='return confirm(message);if (typeof(Page_ClientValidate) ==
>> > 'function') Page_ClientValidate(); '
>> >
>> > I feel is somehow i can insert my confirm script after the code
>> > inserted
>> > by
>> > asp.net , then propably my problem is solved.
>> >
>> >
>> > Please help.
>> >
>> > Thanks and Regards
>> >
>> > Tarun Upadhyaya
>> > MCP (VB.NET & SQL Server 2000)
>> >
>>
>>
>>