Hi,i have a page for delete user option. I use javascript
to pop up confirmation message. after user click ok and the user is deleted, I wan to display messagebox states "This user has been deleted.". How to have the 2nd messageBox displayed? Is it I need to put the code in PageLoad oso?
I tried the coding below, but none of the 2 msgbox is displayed.
Code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
btnDelete.Attributes.Add("onclick", "return confirm('Are you sure you want to delete?');")
btnDelete.Attributes.Add("onclick", "delete();")
End Sub
[html code]
<HEAD>
<title>DeleteUser</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<script language =javascript>
function delete()
{
alert("This user has been deleted from record.");
}
</script>
</HEAD>
[/html code]
thanks!
Irene