T
tshad
I was looking at Scott Mitchells article:
http://aspnet.4guysfromrolla.com/articles/090402-1.2.aspx the tells how to
call a messagebox from a button and can almost get it to work but ran into 2
problems. You have to press the button twice to get it to work and I can't
figure out how to get an answer (OK or Cancel) from it.
Here is the onClick function:
sub Resume_Click(sender as Object, e as eventArgs)
btnResume.Attributes("onclick") = "javascript:return " & _
"confirm('Are you sure you want to delete FAQ #?')"
end sub
The linkbutton is:
Would you like to submit a <asp:LinkButton id="btnResume"
Text="Resume" onClick="Resume_Click" runat="server"/> ?
What am I missing?
Thanks,
Tom
http://aspnet.4guysfromrolla.com/articles/090402-1.2.aspx the tells how to
call a messagebox from a button and can almost get it to work but ran into 2
problems. You have to press the button twice to get it to work and I can't
figure out how to get an answer (OK or Cancel) from it.
Here is the onClick function:
sub Resume_Click(sender as Object, e as eventArgs)
btnResume.Attributes("onclick") = "javascript:return " & _
"confirm('Are you sure you want to delete FAQ #?')"
end sub
The linkbutton is:
Would you like to submit a <asp:LinkButton id="btnResume"
Text="Resume" onClick="Resume_Click" runat="server"/> ?
What am I missing?
Thanks,
Tom