Click here to Skip to main content
16,019,614 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questioncustom validator Pin
gus_br31-Oct-06 3:43
gus_br31-Oct-06 3:43 
AnswerRe: custom validator Pin
ednrgc31-Oct-06 5:33
ednrgc31-Oct-06 5:33 
GeneralRe: custom validator Pin
gus_br31-Oct-06 6:44
gus_br31-Oct-06 6:44 
AnswerRe: custom validator Pin
P A N K A J31-Oct-06 22:45
P A N K A J31-Oct-06 22:45 
Questionattibutes.add Pin
rkmoray31-Oct-06 2:33
rkmoray31-Oct-06 2:33 
AnswerRe: attibutes.add Pin
just3ala231-Oct-06 20:32
just3ala231-Oct-06 20:32 
QuestionASP.net Reset Button Pin
wEb GuRu...31-Oct-06 2:27
wEb GuRu...31-Oct-06 2:27 
AnswerRe: ASP.net Reset Button Pin
ednrgc31-Oct-06 3:50
ednrgc31-Oct-06 3:50 
I didn't write this, but have used it in the past:

Reset button:



Javascript function:
//****************************************************
// ResetValidators(validationSummaryId, validationControlsPrefix)
// Purpose: Resets ASP.NET validation control text display
// AND validation summary control display to empty.
// Inputs: validationSummaryID - string - id of ValidationSummary
// control
// validationControlsPrefix - string - a prefix to use
// to identify validation controls when looping through all
// span Ids. (Validation controls are represented by spans).
// Outputs: none
//****************************************************


function ResetValidators(validationSummaryId, validationControlsPrefix)
{
var spans;
var divValSummary;


if (document.all) {
spans = document.all.tags('span');
divValSummary = document.all(validationSummaryId);
}
else if (document.getElementsByTagName) {
spans = document.getElementsByTagName('span');
divValSummary = document.getElementsById(validationSummaryId);
}
if (spans) {
for (var i = 0; i < spans.length; i++) {
var prefixLength = "" + validationControlsPrefix.length;
var currID = "" + spans[i].id
if ((currID != '') && (prefixLength != '')) {
if (currID.substring(0,prefixLength) == validationControlsPrefix) {
//note - set visibility to hidden, not display=none.
// otherwise validator text will never show up again after reset.
spans[i].style.visibility='hidden';
}
}
}
}
if (divValSummary) {
// note set display=none, NOT visibility=hidden. Exact opposite of
// spans above!! Otherwise, validation summary is hidden permanently.
divValSummary.style.display='none';
}



}
GeneralProblem not yet solved Pin
wEb GuRu...31-Oct-06 5:48
wEb GuRu...31-Oct-06 5:48 
GeneralRe: Problem not yet solved Pin
ednrgc31-Oct-06 5:57
ednrgc31-Oct-06 5:57 
GeneralRe: Problem not yet solved Pin
wEb GuRu...31-Oct-06 6:07
wEb GuRu...31-Oct-06 6:07 
GeneralRe: Problem not yet solved Pin
ednrgc31-Oct-06 6:34
ednrgc31-Oct-06 6:34 
GeneralRe: Problem not yet solved Pin
wEb GuRu...31-Oct-06 6:59
wEb GuRu...31-Oct-06 6:59 
GeneralRe: Problem not yet solved Pin
ednrgc31-Oct-06 7:32
ednrgc31-Oct-06 7:32 
QuestionFCK Editor Pin
srinandan..31-Oct-06 1:23
srinandan..31-Oct-06 1:23 
QuestionRe: FCK Editor Pin
just3ala231-Oct-06 1:37
just3ala231-Oct-06 1:37 
AnswerRe: FCK Editor Pin
Tamimi - Code31-Oct-06 1:44
Tamimi - Code31-Oct-06 1:44 
GeneralRe: FCK Editor Pin
ednrgc31-Oct-06 3:16
ednrgc31-Oct-06 3:16 
GeneralRe: FCK Editor Pin
Tamimi - Code31-Oct-06 3:21
Tamimi - Code31-Oct-06 3:21 
GeneralRe: FCK Editor Pin
ednrgc31-Oct-06 3:27
ednrgc31-Oct-06 3:27 
GeneralRe: FCK Editor Pin
Tamimi - Code31-Oct-06 3:33
Tamimi - Code31-Oct-06 3:33 
GeneralRe: FCK Editor Pin
ednrgc31-Oct-06 3:38
ednrgc31-Oct-06 3:38 
GeneralRe: FCK Editor Pin
Tamimi - Code31-Oct-06 3:41
Tamimi - Code31-Oct-06 3:41 
GeneralRe: FCK Editor Pin
Mircea Grelus31-Oct-06 9:15
Mircea Grelus31-Oct-06 9:15 
GeneralRe: FCK Editor Pin
ednrgc1-Nov-06 2:27
ednrgc1-Nov-06 2:27 

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.