I have the following instruction with which my pretensions are to indicate to a user if he wants or not to print a report.
in case it is True
print and in case it is false
redirects only
Response.Write("<script lengue>confirm('¿Desea Imprimir Este informe?')</script>");
my question is how can I know the option that the user has made
My project is in c #, but I use some JS events
Response.Write("<script lengue>var resultado = confirm('¿Desea Imprimir Este informe?')</script>");
if it was incorporated in that way, how do I access the result variable from outside the script?