Hi,
i want to pass the return value from the javascript to
VB.net. If it's 'False' the e.cancel must be executed.
Protected Sub GridView1_RowDeleting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles GridView1.RowDeleting
Dim jv As String
jv = "function check()" _
& "{" _
& " alert('warning');" _
& " var ok=confirm(if you want to delete; click on OK');" _
& " if (!ok)" _
& " {" _
& " window.location.href='mult.aspx';" _
& " return false;" _
& "};" _
& "};" _
& "check();"
Page.ClientScript.RegisterClientScriptBlock(Me.Get Type(), "myscript", jv, True)
dim x as string
x= result of function check() : HOW TO DO THIS?
if x="False" then e.cancel=True
Thanks for helping