Click here to Skip to main content
15,887,849 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Hi, I need help !!! Pin
Not Active24-Sep-09 2:18
mentorNot Active24-Sep-09 2:18 
AnswerRe: Hi, I need help !!! Pin
sashidhar24-Sep-09 2:18
sashidhar24-Sep-09 2:18 
AnswerRe: Hi, I need help !!! Pin
S.Dhanasekaran24-Sep-09 2:22
S.Dhanasekaran24-Sep-09 2:22 
GeneralRe: Hi, I need help !!! Pin
sashidhar24-Sep-09 2:26
sashidhar24-Sep-09 2:26 
AnswerRe: Hi, I need help !!! Pin
_ASPAle_24-Sep-09 2:41
_ASPAle_24-Sep-09 2:41 
Questioni found error 500 on ie Pin
mauji24-Sep-09 1:25
mauji24-Sep-09 1:25 
AnswerRe: i found error 500 on ie Pin
sashidhar24-Sep-09 1:28
sashidhar24-Sep-09 1:28 
Question[Solved]Confirmation Box Problem [modified] Pin
nagendrathecoder24-Sep-09 0:33
nagendrathecoder24-Sep-09 0:33 
Hello All,
In my ASP.Net application, i am showing a confirmation box using javascript whenever user intends to delete something.
I have written this code in aspx file
function confirmation()
{
if(confirm("Are you sure?")==true)
return true;
else
return false;
}


Then on Page_Load of my codebehind, i am using this:
btnDelete.Attributes.Add("onclick", "return confirmation();")


It is working fine, if user click ok record is deleting and vice versa.

But when i am trying to write same thing for my GridView delete link its not working, i am writting this:
GridView1.Attributes.Add("OnRowDeleting", "return confirmation();");


Can anybody help me? why its not working for GridView_RowDeleting method?

Thanks,
Nagendra.

modified on Thursday, September 24, 2009 7:06 AM

AnswerRe: Confirmation Box Problem Pin
Christian Graus24-Sep-09 0:36
protectorChristian Graus24-Sep-09 0:36 
GeneralRe: Confirmation Box Problem Pin
nagendrathecoder24-Sep-09 0:51
nagendrathecoder24-Sep-09 0:51 
AnswerRe: Confirmation Box Problem Pin
sashidhar24-Sep-09 0:53
sashidhar24-Sep-09 0:53 
GeneralRe: Confirmation Box Problem Pin
nagendrathecoder24-Sep-09 0:58
nagendrathecoder24-Sep-09 0:58 
GeneralRe: Confirmation Box Problem Pin
sashidhar24-Sep-09 1:00
sashidhar24-Sep-09 1:00 
GeneralRe: Confirmation Box Problem Pin
nagendrathecoder24-Sep-09 1:00
nagendrathecoder24-Sep-09 1:00 
GeneralRe: Confirmation Box Problem Pin
sashidhar24-Sep-09 1:01
sashidhar24-Sep-09 1:01 
GeneralRe: Confirmation Box Problem Pin
Abhijit Jana24-Sep-09 1:03
professionalAbhijit Jana24-Sep-09 1:03 
GeneralRe: Confirmation Box Problem Pin
nagendrathecoder24-Sep-09 1:06
nagendrathecoder24-Sep-09 1:06 
GeneralRe: Confirmation Box Problem Pin
Abhijit Jana24-Sep-09 2:40
professionalAbhijit Jana24-Sep-09 2:40 
AnswerRe: Confirmation Box Problem Pin
Nisha Agrawal24-Sep-09 1:11
Nisha Agrawal24-Sep-09 1:11 
GeneralRe: Confirmation Box Problem Pin
nagendrathecoder24-Sep-09 1:18
nagendrathecoder24-Sep-09 1:18 
JokeRe: Confirmation Box Problem Pin
sashidhar24-Sep-09 1:33
sashidhar24-Sep-09 1:33 
GeneralRe: Confirmation Box Problem Pin
nagendrathecoder24-Sep-09 1:34
nagendrathecoder24-Sep-09 1:34 
QuestionUpdate panel in asp.net Pin
Harry@NewDelhi24-Sep-09 0:21
Harry@NewDelhi24-Sep-09 0:21 
AnswerRe: Update panel in asp.net Pin
Christian Graus24-Sep-09 0:34
protectorChristian Graus24-Sep-09 0:34 
AnswerRe: Update panel in asp.net Pin
sashidhar24-Sep-09 0:46
sashidhar24-Sep-09 0:46 

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.