D
Dave
I'm tearing my hair out over this one.
Using VS 2003, inline (not code-behind), vb.net.
I have a button (btnClear) that calls a vb routine that goes into sql server
and truncates a table.
What I want is to call a javascript confirm box upon clicking the button
that asks the user if he's sure he wants to do the deed. I have tried so
many permutations and combinations of RegisterClientScriptBlock, <input
onclick=, runat=server, btnClear.Attributes.Add("onclick",".....") that my
head is spinning.
I just can't seem to get the confirm return value to the vb.net code, the
server-side, or whatever the correct term is. After Googling for help, I
saw many examples of javascript code that is easy to understand and use, but
none that works together with vb.net code.
Can anyone provide a clear method of doing this?
Thanks in advance,
Dave
Using VS 2003, inline (not code-behind), vb.net.
I have a button (btnClear) that calls a vb routine that goes into sql server
and truncates a table.
What I want is to call a javascript confirm box upon clicking the button
that asks the user if he's sure he wants to do the deed. I have tried so
many permutations and combinations of RegisterClientScriptBlock, <input
onclick=, runat=server, btnClear.Attributes.Add("onclick",".....") that my
head is spinning.
I just can't seem to get the confirm return value to the vb.net code, the
server-side, or whatever the correct term is. After Googling for help, I
saw many examples of javascript code that is easy to understand and use, but
none that works together with vb.net code.
Can anyone provide a clear method of doing this?
Thanks in advance,
Dave