In my asp.net website,i want to show a notification to the user when he/she try to delete data , i have used a msgbox in my vb code but it didn't work on the server side , i have searched and found that i should use java script alert ,i have used it but the problem is that it appears at the top of the screen and its so simple how can i make an alert or dialog like the following image using java script and vb
this is my code
Protected Sub btnDelete_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDelete.Click
ScriptManager.RegisterStartupScript(Page, Page.GetType,Guid.NewGuid().ToString(), "alert('you cannot delete this data ')", True)
End Sub
Please any one can help me , any help would be appreciated
Thanks in advance