Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to execute Client Code after Validation

Thread Tools

How to execute Client Code after Validation

Lav KG
Posts: n/a

I'm developing a page that has to pop up a License agreement (hope
fully a modal Dialog).on submit of the page.

But the problem is, Pop up is showing up (onclick of the button) even
when the Page is not valid.
I'm using window.showModalDialog('url') method to pop it up.
I guess this is because I'm using same button to pop up as well as to
validate the page
(CausesValidation = true).

//__________________________________________________ __________

btnSubmit.Attributes.Add("onclick","window.showMod alDialog('url ')");
btnSubmit.CausesValidation = true;

//__________________________________________________ __________

Is there any work around to this?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to execute client-side code _after_ client-side validation? Bogdan ASP .Net 2 06-09-2008 01:31 PM
Execute client side script when validation fails - how? turboJeeper ASP .Net 2 02-01-2007 10:54 AM
Client side script after client side validation with 2.0 Boss302 ASP .Net 0 11-21-2006 08:43 AM
validation message only show in val summary when ShowSummary=true when no js to execute on client TS ASP .Net Web Controls 5 07-06-2006 09:08 PM