Click here to Skip to main content
15,913,685 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: alignment - gridview, label, textbox Pin
Venkatesh Mookkan3-Jan-07 0:48
Venkatesh Mookkan3-Jan-07 0:48 
GeneralRe: alignment - gridview, label, textbox Pin
aransiola3-Jan-07 0:55
aransiola3-Jan-07 0:55 
Questionjavscript to compare 2 dates Pin
samerh2-Jan-07 2:27
samerh2-Jan-07 2:27 
AnswerRe: javscript to compare 2 dates Pin
Sathesh Sakthivel2-Jan-07 2:45
Sathesh Sakthivel2-Jan-07 2:45 
AnswerRe: javscript to compare 2 dates Pin
DaveRRR2-Jan-07 3:09
DaveRRR2-Jan-07 3:09 
GeneralRe: javscript to compare 2 dates Pin
samerh2-Jan-07 3:25
samerh2-Jan-07 3:25 
GeneralRe: javscript to compare 2 dates [modified] Pin
DaveRRR2-Jan-07 9:07
DaveRRR2-Jan-07 9:07 
QuestionCauses validation. Pin
MY12012-Jan-07 2:00
MY12012-Jan-07 2:00 
Hello all!

Happy new year! Smile | :)

I have a problem with a bizarre ImageButton. It keeps "causing validation". It is part of a table and I use the following code to create it (C#):

ImageButton cmdDelete = new ImageButton();
            cmdDelete.CommandName = "Delete";
            cmdDelete.CommandArgument = p.DbId.ToString();
            cmdDelete.Command += DeleteRecipient;
            cmdDelete.ImageUrl = "~/Images/trash.gif";
            cmdDelete.CausesValidation = false;
            cmdDelete.OnClientClick = "javascript:Page_ValidationActive=false;";


1. Causes validation is false.
2. OnClientClick is set to "Page_ValidationActive=false" - which I've heard should be equal to 1., just for the client.

Now it behaves like this:
The first time it is clicked, it does not cause validation, and the user is deleted and removed from the list. If I click to delete another user, suddenly the button causes validation. If I click it again, it does not! And so on, and so on.

I've tried stepping through the code, and every second time the button is clicked, it causes validation.

Validation occurs server side, since I've tried turning off JavaScript, and the exact same pattern occurs.

I'm kind of confused! LOL! Smile | :)

Best regards
Soeren
Questionproblem of storing data in the session Pin
Abhishek Joshi2-Jan-07 1:48
Abhishek Joshi2-Jan-07 1:48 
AnswerRe: problem of storing data in the session Pin
Pete O'Hanlon2-Jan-07 2:09
mvePete O'Hanlon2-Jan-07 2:09 
Question"Access Denied " on saving download file on 2000 Professional Pin
sanjeev Kumar Gupta2-Jan-07 1:34
sanjeev Kumar Gupta2-Jan-07 1:34 
AnswerRe: "Access Denied " on saving download file on 2000 Professional Pin
Colin Angus Mackay2-Jan-07 1:57
Colin Angus Mackay2-Jan-07 1:57 
Questionneed error Pin
Rmesh2-Jan-07 1:25
Rmesh2-Jan-07 1:25 
AnswerRe: need error Pin
Colin Angus Mackay2-Jan-07 1:34
Colin Angus Mackay2-Jan-07 1:34 
GeneralRe: need help Pin
Rmesh2-Jan-07 1:44
Rmesh2-Jan-07 1:44 
GeneralRe: need help Pin
Colin Angus Mackay2-Jan-07 1:55
Colin Angus Mackay2-Jan-07 1:55 
GeneralRe: need help Pin
Rmesh2-Jan-07 2:10
Rmesh2-Jan-07 2:10 
GeneralRe: need help Pin
Colin Angus Mackay2-Jan-07 2:20
Colin Angus Mackay2-Jan-07 2:20 
AnswerRe: need error Pin
Pete O'Hanlon2-Jan-07 2:17
mvePete O'Hanlon2-Jan-07 2:17 
GeneralRe: need error Pin
Rmesh2-Jan-07 2:51
Rmesh2-Jan-07 2:51 
GeneralRe: need error Pin
Pete O'Hanlon2-Jan-07 3:40
mvePete O'Hanlon2-Jan-07 3:40 
GeneralRe: need error Pin
Colin Angus Mackay2-Jan-07 12:57
Colin Angus Mackay2-Jan-07 12:57 
QuestionSearch keyword in documents Pin
Member 36858892-Jan-07 0:06
Member 36858892-Jan-07 0:06 
AnswerRe: Search keyword in documents Pin
cnr3692-Jan-07 0:49
cnr3692-Jan-07 0:49 
QuestionOWC Components Pin
dotnetquery2-Jan-07 0:04
dotnetquery2-Jan-07 0:04 

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.