Get Confirm response in code

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.

.



Relevant Pages

  • Re: Get Confirm response in code
    ... To display a confirmation message we can use the server side code that uses ... IF another user is editing record THEN ... one custom confirm form I created but the problem is that statements ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Hardware Recommendations
    ... Apple Cinema 23" Display ... Apple keyboard + Mac OS X ... You also didn't mention how much video editing you think ...
    (rec.video.production)
  • Re: Need help selecting controls for app
    ... When editing Level 3, the user doesn't get the whole picture unless ... > Level node the DataGrid can be populated with the attributes of the Level. ... So a display might look ... I don't want to have to scroll to see the ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • how best to edit data in a data grid
    ... I want to display the data of a table in a datagrid in one form, ... enable editing the data for a row in another form ... acceptchanges & rowstate of the Row object). ... Pass the dataset & the row position to the next form, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Script on Data Access Page
    ... MsgBox ConfMsg,0,"Confirmation Message" ... <MS ACCESS MVP> ... should save the record and display a confirmation message box. ...
    (microsoft.public.access.modulesdaovba)