Click here to Skip to main content
15,898,588 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Update panel and button Pin
eyeseetee26-Mar-08 22:45
eyeseetee26-Mar-08 22:45 
GeneralRe: Update panel and button Pin
Sandeep Akhare26-Mar-08 22:58
Sandeep Akhare26-Mar-08 22:58 
GeneralRe: Update panel and button Pin
Soumini Ramakrishnan26-Mar-08 23:22
Soumini Ramakrishnan26-Mar-08 23:22 
GeneralRe: Update panel and button Pin
eyeseetee26-Mar-08 23:46
eyeseetee26-Mar-08 23:46 
GeneralRe: Update panel and button Pin
Sandeep Akhare26-Mar-08 23:47
Sandeep Akhare26-Mar-08 23:47 
Generallink Pin
trilokharry26-Mar-08 21:35
trilokharry26-Mar-08 21:35 
GeneralRe: link Pin
~V~26-Mar-08 21:52
~V~26-Mar-08 21:52 
GeneralAlert Function In asp.net Pin
~V~26-Mar-08 21:15
~V~26-Mar-08 21:15 
Hi all

I m using Asp.net(Vb) and When the user wants to delete the item i'll have to show a Message Box with Ok and Cancel.
In Vb.net we can use Msgbox() but in asp.net it gives error so i'll have to use javascript' alert function() for it but how can i use it in my code file abc.vb not in the abc.aspx(source file).
And if i use it in source file then how can i access the result(ok or canel) in my code file' button click event???

 Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
        Dim result As MsgBoxResult<br />
        result = MsgBox("Do you want to delete the record permanantely?", MsgBoxStyle.OkCancel)<br />
<br />
        If result = MsgBoxResult.Ok Then<br />
            Sql = "Delete from items where userid=" & Session("userid") & " and itemid=" + itemid.ToString<br />
            cmd = New SqlCommand(Sql, cnn)<br />
            cmd.CommandType = CommandType.Text<br />
<br />
            Me.cnn.Open()<br />
            Me.cmd.ExecuteNonQuery()<br />
            Me.cnn.Close()<br />
<br />
            Me.add_record()<br />
        End If<br />
    End Sub



Thanks with anticipation...
GeneralRe: Alert Function In asp.net Pin
rajanandal26-Mar-08 21:26
rajanandal26-Mar-08 21:26 
GeneralRe: Alert Function In asp.net Pin
~V~26-Mar-08 21:40
~V~26-Mar-08 21:40 
GeneralRe: Alert Function In asp.net Pin
rajanandal26-Mar-08 22:02
rajanandal26-Mar-08 22:02 
GeneralRe: Alert Function In asp.net Pin
~V~26-Mar-08 22:08
~V~26-Mar-08 22:08 
GeneralRe: Alert Function In asp.net Pin
Christian Graus26-Mar-08 22:04
protectorChristian Graus26-Mar-08 22:04 
GeneralRe: Alert Function In asp.net Pin
~V~26-Mar-08 22:11
~V~26-Mar-08 22:11 
GeneralRe: Alert Function In asp.net Pin
Christian Graus26-Mar-08 22:22
protectorChristian Graus26-Mar-08 22:22 
GeneralRe: Alert Function In asp.net Pin
~V~26-Mar-08 23:18
~V~26-Mar-08 23:18 
GeneralRe: Alert Function In asp.net PinPopular
Christian Graus26-Mar-08 23:45
protectorChristian Graus26-Mar-08 23:45 
GeneralRe: Alert Function In asp.net Pin
J4amieC27-Mar-08 0:17
J4amieC27-Mar-08 0:17 
GeneralRe: Alert Function In asp.net Pin
Christian Graus27-Mar-08 10:21
protectorChristian Graus27-Mar-08 10:21 
GeneralRe: Alert Function In asp.net Pin
~V~27-Mar-08 20:07
~V~27-Mar-08 20:07 
GeneralRe: Alert Function In asp.net Pin
Jeremy Falcon27-Mar-08 8:52
professionalJeremy Falcon27-Mar-08 8:52 
GeneralRe: Alert Function In asp.net Pin
J4amieC27-Mar-08 0:21
J4amieC27-Mar-08 0:21 
QuestionAbout WEB CAMARA in asp.net Pin
viralsarvaiya26-Mar-08 21:10
viralsarvaiya26-Mar-08 21:10 
GeneralRe: About WEB CAMARA in asp.net Pin
Christian Graus26-Mar-08 22:03
protectorChristian Graus26-Mar-08 22:03 
Generalcopy table from dataset to Dataview Pin
chakran26-Mar-08 20:16
chakran26-Mar-08 20:16 

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.