Click here to Skip to main content
15,923,051 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: TELNET CONNECTION with VB.NET Pin
NormDroid14-May-06 23:09
professionalNormDroid14-May-06 23:09 
GeneralRe: TELNET CONNECTION with VB.NET Pin
Altrustic00714-May-06 23:17
Altrustic00714-May-06 23:17 
GeneralRe: TELNET CONNECTION with VB.NET Pin
NormDroid14-May-06 23:27
professionalNormDroid14-May-06 23:27 
GeneralRe: TELNET CONNECTION with VB.NET Pin
Altrustic00715-May-06 0:04
Altrustic00715-May-06 0:04 
QuestionDelete confirmation box Pin
Amit Agarrwal14-May-06 21:34
Amit Agarrwal14-May-06 21:34 
AnswerRe: Delete confirmation box Pin
nicko14-May-06 21:55
nicko14-May-06 21:55 
GeneralRe: Delete confirmation box Pin
Amit Agarrwal14-May-06 22:40
Amit Agarrwal14-May-06 22:40 
GeneralRe: Delete confirmation box Pin
nicko14-May-06 22:54
nicko14-May-06 22:54 
in the code behind page:

..
    Private Sub btnDelete_Init(...) Handles btnDelete.Init
        btnDelete.Attributes.Add("onclick", "return confirmDelete();")
    End Sub
...


on the aspx page:

..
    <script language="javascript" type="text/javascript">

        function confirmDelete() {
            var strMessage = 'Are you sure you want to Delete this record?');
            return window.confirm(strMessage);
        }

    </script>
...



This script will provide a confirm dialog which asks the user is they are sure they want to delete this record, and if the user has selected 'Ok' then the script will submit the page back to the server and you can use the btnDelete_Click event to process the action. If the user selects 'Cancel' from the prompt, the page will not post back.

Hope that helps.

nicko
GeneralRe: Delete confirmation box Pin
Amit Agarrwal14-May-06 23:54
Amit Agarrwal14-May-06 23:54 
AnswerRe: Delete confirmation box Pin
albCode15-May-06 0:07
albCode15-May-06 0:07 
GeneralRe: Delete confirmation box Pin
Amit Agarrwal15-May-06 0:10
Amit Agarrwal15-May-06 0:10 
GeneralRe: Delete confirmation box Pin
albCode15-May-06 2:23
albCode15-May-06 2:23 
GeneralRe: Delete confirmation box Pin
Amit Agarrwal15-May-06 3:17
Amit Agarrwal15-May-06 3:17 
QuestionGet Handle of Forms Pin
minhnguyen0814-May-06 20:46
minhnguyen0814-May-06 20:46 
AnswerRe: Get Handle of Forms Pin
Rizwan Bashir14-May-06 23:27
Rizwan Bashir14-May-06 23:27 
Questionimage size Pin
amaneet14-May-06 20:39
amaneet14-May-06 20:39 
AnswerRe: image size Pin
Rizwan Bashir14-May-06 23:25
Rizwan Bashir14-May-06 23:25 
QuestionHow To RECORD VIDEO using VB.NET coding? Pin
sNoW^__^14-May-06 20:32
sNoW^__^14-May-06 20:32 
AnswerRe: How To RECORD VIDEO using VB.NET coding? Pin
Briga15-May-06 1:36
Briga15-May-06 1:36 
GeneralRe: How To RECORD VIDEO using VB.NET coding? Pin
sNoW^__^15-May-06 5:52
sNoW^__^15-May-06 5:52 
GeneralRe: How To RECORD VIDEO using VB.NET coding? Pin
Briga17-May-06 8:52
Briga17-May-06 8:52 
Questionbarcode scanner Pin
KatliwaMax14-May-06 20:28
KatliwaMax14-May-06 20:28 
AnswerRe: barcode scanner Pin
Rizwan Bashir14-May-06 23:21
Rizwan Bashir14-May-06 23:21 
Questionconnect to sql2005 Pin
amilapradeep14-May-06 19:56
amilapradeep14-May-06 19:56 
AnswerRe: connect to sql2005 Pin
Colin Angus Mackay14-May-06 22:43
Colin Angus Mackay14-May-06 22:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.