T
tshad
I don't know if this can be done. It is a coordination with my client side
vs my server side code.
I can create a popup fine:
Dim myNextButton As ImageButton =
CType(DataList1.Controls(DataList1.Controls.Count-1).FindControl("DownQuestion"),ImageButton)
myNextButton.Attributes.Add("onclick", "return confirm('Are you sure
you want finish this test?');")
This will put a popup on my button that will get processed before the page
posts. If they say "yes" the post happens, if "no", it doesn't.
If it posts, I am going to hide part of the page and show a congratulations
message.
My problem is that I need to check to see if a radiobutton has been pressed
first and one of my global values is set. This means I need to go to my
server side code to check this out and it is too late to attach the popup to
my button as it has already been pushed and the page is already in postback
mode.
Is there a way to do this?
Thanks,
Tom
vs my server side code.
I can create a popup fine:
Dim myNextButton As ImageButton =
CType(DataList1.Controls(DataList1.Controls.Count-1).FindControl("DownQuestion"),ImageButton)
myNextButton.Attributes.Add("onclick", "return confirm('Are you sure
you want finish this test?');")
This will put a popup on my button that will get processed before the page
posts. If they say "yes" the post happens, if "no", it doesn't.
If it posts, I am going to hide part of the page and show a congratulations
message.
My problem is that I need to check to see if a radiobutton has been pressed
first and one of my global values is set. This means I need to go to my
server side code to check this out and it is too late to attach the popup to
my button as it has already been pushed and the page is already in postback
mode.
Is there a way to do this?
Thanks,
Tom