Get Confirm response in code
- From: "chris" <CLarkou@xxxxxxxxx>
- Date: 30 Jun 2006 01:23:01 -0700
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.
.
- Follow-Ups:
- Re: Get Confirm response in code
- From: ValliM
- Re: Get Confirm response in code
- Prev by Date: Re: I need my CSS in the master page to get reflected in content page
- Next by Date: Architecture best practise
- Previous by thread: Sorting when the page is loaded the first time
- Next by thread: Re: Get Confirm response in code
- Index(es):
Relevant Pages
|