Click here to Skip to main content
15,905,614 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPlease help me about dynamically created button control at runtime Pin
G Nathan23-Mar-08 21:40
G Nathan23-Mar-08 21:40 
GeneralRe: Please help me Pin
N a v a n e e t h23-Mar-08 22:55
N a v a n e e t h23-Mar-08 22:55 
GeneralRe: Please help me Pin
G Nathan23-Mar-08 22:59
G Nathan23-Mar-08 22:59 
GeneralRe: Please help me Pin
N a v a n e e t h23-Mar-08 23:08
N a v a n e e t h23-Mar-08 23:08 
GeneralRe: Please help me Pin
G Nathan23-Mar-08 23:25
G Nathan23-Mar-08 23:25 
GeneralRe: Please help me Pin
N a v a n e e t h24-Mar-08 0:32
N a v a n e e t h24-Mar-08 0:32 
GeneralRe: Please help me Pin
G Nathan24-Mar-08 2:10
G Nathan24-Mar-08 2:10 
QuestionDelete Confirmation Pin
T.EDY23-Mar-08 21:37
T.EDY23-Mar-08 21:37 
Hi,

I'm having a problem to show a confirmation messageBox when i press my LinkButton inside my gridview..Currently i'm using gridview_RowDataBound Event :

protected void gvAllProjects_RowDataBound(object sender, GridViewRowEventArgs e)<br />
    {<br />
        if (e.Row.RowType == DataControlRowType.DataRow)<br />
        {<br />
            LinkButton lbDelete = (LinkButton)e.Row.FindControl("lnkDelBtn");<br />
<br />
            lbDelete.Attributes.Add("onclick", "javascript:return " +<br />
                 "confirm('Are you sure you want to delete Customer : " +<br />
                 DataBinder.Eval(e.Row.DataItem, "mainproject_cust") + " ?')");<br />
        }<br />
    }


it show me the confirmation messagebox, when i press the "Ok" button the data is succesfully deleted but when i press "cancel" it delete my data too Confused | :confused: ..pls anyone give me a solution how to detect when user press "Ok" or "Cancel" button.

Thank u for the help

Regards,

Tomi

GeneralRe: Delete Confirmation Pin
Sun Rays23-Mar-08 23:01
Sun Rays23-Mar-08 23:01 
GeneralRe: Delete Confirmation Pin
sumit703423-Mar-08 23:02
sumit703423-Mar-08 23:02 
QuestionAdd to cart functionality Pin
Ravi_2123-Mar-08 20:21
Ravi_2123-Mar-08 20:21 
GeneralHome Work , Urgent question. Please ignore Pin
N a v a n e e t h23-Mar-08 20:32
N a v a n e e t h23-Mar-08 20:32 
GeneralRe: Add to cart functionality Pin
Christian Graus23-Mar-08 20:35
protectorChristian Graus23-Mar-08 20:35 
QuestionHow to pass parameters into sql jobs? Pin
ashish bhakhar23-Mar-08 19:19
ashish bhakhar23-Mar-08 19:19 
GeneralRe: How to pass parameters into sql jobs? Pin
Christian Graus23-Mar-08 20:36
protectorChristian Graus23-Mar-08 20:36 
GeneralRe: How to pass parameters into sql jobs? Pin
ashish bhakhar23-Mar-08 20:44
ashish bhakhar23-Mar-08 20:44 
GeneralRe: How to pass parameters into sql jobs? Pin
Christian Graus23-Mar-08 21:19
protectorChristian Graus23-Mar-08 21:19 
GeneralRe: How to pass parameters into sql jobs? Pin
ashish bhakhar23-Mar-08 23:22
ashish bhakhar23-Mar-08 23:22 
GeneralRe: How to pass parameters into sql jobs? Pin
saini arun24-Mar-08 5:39
saini arun24-Mar-08 5:39 
GeneralRe: How to pass parameters into sql jobs? Pin
Christian Graus24-Mar-08 9:59
protectorChristian Graus24-Mar-08 9:59 
Questionorder by clause in crystal reports Pin
Pankaj Garg23-Mar-08 19:15
Pankaj Garg23-Mar-08 19:15 
GeneralRe: order by clause in crystal reports Pin
Pankaj Garg23-Mar-08 22:59
Pankaj Garg23-Mar-08 22:59 
QuestionHow to avoid page refresh on click of F5 Pin
Prateek G23-Mar-08 18:54
Prateek G23-Mar-08 18:54 
AnswerRe: How to avoid page refresh on click of F5 Pin
Christian Graus23-Mar-08 20:36
protectorChristian Graus23-Mar-08 20:36 
GeneralCollectionBase trouble... Pin
Kasic Slobodan23-Mar-08 16:13
Kasic Slobodan23-Mar-08 16:13 

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.