![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, sorry if this seems stupid, please have patience. I'm running Win XP sp2, VS 2005 Tem, SQL Sever 2005, I've been using a gridview to display my DB information, on the Gridview_RowUpadating event handler I validate if the value entered already exist en the DB using the following. Protected Sub GridView1_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GridView1.RowUpdating Dim valor As String = e.NewValues("ProductName").ToString If RunQueryDr(valor) = True Then e.Cancel = True MsgBox("This value already exist!", MsgBoxStyle.ApplicationModal + MsgBoxStyle.Critical, "Error") Return End If End Sub I want to display the message box always on top of other windows, so the user can't minimize it or even worst keep trying to update the record and thus opening various error message boxes, I've tried the JavaScript openwindow and alert functions with no success. Thanks |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |