Re: Using Javascript confirm box in vb.net web app - SOLVED

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Dave (dave_Please_reply_to_group_only_at_stic.net)
Date: 07/14/04


Date: Wed, 14 Jul 2004 15:45:45 -0500

Upon further research, I find your method works fine. I didn't understand
the internal mechanics of submitting pages before, but this method takes
care of what I need with no problem.

So thanks again, Greg, your advice was very helpful.

Dave

[snip
]> > > > "Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in message
> > > > news:%236CKSBTZEHA.2388@TK2MSFTNGP09.phx.gbl...
> > > >> In Page Load event:
> > > >>
> > > >> btnSubmit.Attributes.Add("language", "javascript")
> > > >> btnSubmit.Attributes.Add("OnClick", "return confirm('Are you
> sure?');")
> > > >>
> > > >> Page will not submit if Cancel is clicked. Things get harry if you
> > have
> > > >> a
> > > >> validator on the page, and CausesValidation = True for your submit
> > > > button...
> > > >>
> > > >> Greg
[snip]


Quantcast