-
Prompt a MsgBox on Delete Button Click event
Hi All,
I have a Delete button on my web form. When user clicks the Delete button,
I want to prompt a confirmation message box with Yes and No button. How can
I do it in my DeleteButton_Click event? How can I get the value return by
the MsgBox or how can I know which button the user clicked?
Dim sMsg As String
sMsg = "Do you want to delete all records?"
response.write("<"+"Script language=""VBScript"">"+chr(13))
response.write("Msgbox """+ sMsg +" "",4, "" Delete Confirmation"" "+chr(13))
response.write("</"+"Script>")
If vbYes Then
'Delete Record here...
End If
Thanks in advance,
Steve
-
Re: Prompt a MsgBox on Delete Button Click event
"Steve" <vb.@127.0.0.1> wrote in message
news:3ddf01cc$1@tnews.web.devx.com...
>
try this control, works nicely:
http://www.asp.net/ControlGallery/Co...123&tabindex=2
rgds
John Butler
-
Re: Prompt a MsgBox on Delete Button Click event
Thanks. Is the control free to use? There is no licensing information available.
"John Butler" <nospamjrbutler@btinternet.com> wrote:
>
>"Steve" <vb.@127.0.0.1> wrote in message
>news:3ddf01cc$1@tnews.web.devx.com...
>>
>
>try this control, works nicely:
>http://www.asp.net/ControlGallery/Co...123&tabindex=2
>
>
>
>
>
>rgds
>John Butler
>
>
-
Re: Prompt a MsgBox on Delete Button Click event
"Steve" <vb.@127.0.0.1> wrote in message
news:3de301b6$1@tnews.web.devx.com...
>
> Thanks. Is the control free to use? There is no licensing information
available.
Andy's work is freely downloadable, but he invites you to use PayPal and
make a donation if you find his code useful.
see: http://www.metabuilders.com/default.aspx
rgds
John Butler
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks