C
chris
Hi,
In ASP.NET page, when my user tries to edit a record in gridview, I
need to display a confirmation message, if another user is editing the
same record. Since the confirmation message will not be displayed on a
button click, I am using the following:
'check whether another user is editing record
IF another user is editing record THEN
Dim cspt As ClientScriptManager = Page.ClientScript
If (Not cspt.IsStartupScriptRegistered(Me.GetType(), "confirm"))
Then cspt.RegisterStartupScript(Me.GetType(), "confirm",
"confirm('" & vsp_message_text & "' );", True)
End If
IF CONFIRM = YES Then
ELSE
Can I retrieve the answer from confirm message in any way ? If not, is
there another way of doing this ? I tried with showing as modalwindow
one custom confirm form I created but the problem is that statements
after IF CONFIRM = YES Then are executed before custom confirm form is
displayed.
Thanks a lot in advance.
In ASP.NET page, when my user tries to edit a record in gridview, I
need to display a confirmation message, if another user is editing the
same record. Since the confirmation message will not be displayed on a
button click, I am using the following:
'check whether another user is editing record
IF another user is editing record THEN
Dim cspt As ClientScriptManager = Page.ClientScript
If (Not cspt.IsStartupScriptRegistered(Me.GetType(), "confirm"))
Then cspt.RegisterStartupScript(Me.GetType(), "confirm",
"confirm('" & vsp_message_text & "' );", True)
End If
IF CONFIRM = YES Then
ELSE
Can I retrieve the answer from confirm message in any way ? If not, is
there another way of doing this ? I tried with showing as modalwindow
one custom confirm form I created but the problem is that statements
after IF CONFIRM = YES Then are executed before custom confirm form is
displayed.
Thanks a lot in advance.