This is what I have so far in my code behind but its not working:
Dim sb As New StringBuilder
sb.Append("<script language=javascript>")
sb.Append("if (confirm('Your query returned over 1000 records. Do you want to proceed?')")
sb.Append("{")
test = "yes"
sb.Append("}")
sb.Append("else")
sb.Append("{")
test = "no"
sb.Append("}")
sb.Append("</script>")
If Not IsStartupScriptRegistered("ConfirmAlertHandler") Then
RegisterStartupScript("ConfirmAlertHandler", sb.ToString())
End If
Ya I am confused I think this might not work either. Maybe I just need to use straight javascript code. Calling on the exit of a textbox a function that prompts a confirm and if the user clicks yes then fill the txtbox(x).Text with the same values
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.