hi,
i want to call javascript confirm function in .aspx.cs page,
i have done it by using RegisterStartUpScript
javascript code:
<html>
<head runat="server">
<script type="text/javascript" language="javascript">
function alertMe()
{
//alert("Hello");
if(confirm("File with this Name Already Exists, Do you want to Replace it ?"))
{
return true;
}
else
{
return false;
}
}
</script>
</head>
</html>
.aspx.cs code on button click based on some condition:
Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "alertMe();", true);
Now how can i check whether confirm returns true or false, i need to write some code based on confrim's true false return.
hw can i do this, please help.
Thanks