G
Guest
Hi,
I have an asp.net page that has a LinkButton w/ attribute "onclick" = "javascript confirm('hello world');" How do I pass the value of the OK button back to my asp .net page? I could, put the function in the <head> section like...
<head>
<script language="javascript">
function CallMe()
{
if(confirm("hello world"))
{
// pass the OK value to asp.net page
}
else
{
// pass the cancel value to asp.net page
}
}
</script>
</head>
....
and have my LinkButton "onclick" attribute to call "CallMe()".
Please advice, thanks!
-P
I have an asp.net page that has a LinkButton w/ attribute "onclick" = "javascript confirm('hello world');" How do I pass the value of the OK button back to my asp .net page? I could, put the function in the <head> section like...
<head>
<script language="javascript">
function CallMe()
{
if(confirm("hello world"))
{
// pass the OK value to asp.net page
}
else
{
// pass the cancel value to asp.net page
}
}
</script>
</head>
....
and have my LinkButton "onclick" attribute to call "CallMe()".
Please advice, thanks!
-P