attributes.add question

J

Jennyfer J Barco

Hello in a grid when the user selects the Delete column I need to ask "are
you sure" and then if the user anwers "yes" I need to make another question
regarding to some security procedure like "was this approved?" and be able
to keep this answer for our records. Is it possible to do this? right now I
only have the first question with the code:

myDeleteButton.Attributes.Add("onclick", "return confirm('Are you sure you
want to delete this record?');")



Thanks in advance
 
C

Curt_C [MVP]

the button will only get fired if they click YES, so you can only store the
YES's.
 
J

Jennyfer J Barco

it means that there is no way to ask the user something and have the answer
selected with other way than "return confirm"?
 
M

masoud bayan

There is another work around I use in my app, but I am not sure it is what
exactly you need.
Instead of a confirm pop up I open an aspx page and ask user whatever I want
and process them server side then at the end close open window and on opener
windows call submit, so opener window will be update with latest
information.

Masoud
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top