Click here to Skip to main content
15,886,519 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionServer.MapPath() Problem!!! Pin
Varun Sareen23-Dec-10 19:11
Varun Sareen23-Dec-10 19:11 
AnswerRe: Server.MapPath() Problem!!! Pin
Hiren solanki23-Dec-10 19:40
Hiren solanki23-Dec-10 19:40 
GeneralRe: Server.MapPath() Problem!!! Pin
Varun Sareen23-Dec-10 22:13
Varun Sareen23-Dec-10 22:13 
GeneralRe: Server.MapPath() Problem!!! Pin
Hiren solanki23-Dec-10 23:07
Hiren solanki23-Dec-10 23:07 
QuestionExport data to Excel problem Pin
Asif Rehman23-Dec-10 0:45
Asif Rehman23-Dec-10 0:45 
AnswerRe: Export data to Excel problem Pin
Hiren solanki23-Dec-10 1:05
Hiren solanki23-Dec-10 1:05 
AnswerRe: Export data to Excel problem Pin
thatraja23-Dec-10 7:29
professionalthatraja23-Dec-10 7:29 
QuestionCustom Validation Pin
Jammer22-Dec-10 1:24
Jammer22-Dec-10 1:24 
Hi All,

I've got the following lines in my button click handler.
if (!this.CheckObjectivesCheckBoxesValid())
{
    var repeaterValidator = new CustomValidator();
    repeaterValidator.IsValid = false;
    repeaterValidator.ErrorMessage = "Please select at least one objective.";
    Page.Validators.Add(repeaterValidator);
}

if (string.IsNullOrEmpty(this.txtDetails.Text) && string.IsNullOrEmpty(this.txtSuggestions.Text) && string.IsNullOrEmpty(this.txtSupportingEvidence.Text))
{
    var requiredFields = new CustomValidator();
    requiredFields.IsValid = false;
    requiredFields.ErrorMessage = "You must include information in at least one of Details, Suggestions or Evidence";
    Page.Validators.Add(requiredFields);
}


But the validation never seems to happen ...

Any ideas?

AnswerRe: Custom Validation Pin
Hiren solanki22-Dec-10 1:40
Hiren solanki22-Dec-10 1:40 
GeneralRe: Custom Validation Pin
fjdiewornncalwe22-Dec-10 3:39
professionalfjdiewornncalwe22-Dec-10 3:39 
JokeRe: Custom Validation Pin
Hiren solanki22-Dec-10 3:41
Hiren solanki22-Dec-10 3:41 
GeneralRe: Custom Validation Pin
fjdiewornncalwe22-Dec-10 10:43
professionalfjdiewornncalwe22-Dec-10 10:43 
QuestionProblem with Security Information Message Pop Up Box Pin
AndyASPVB21-Dec-10 22:32
AndyASPVB21-Dec-10 22:32 
AnswerRe: Problem with Security Information Message Pop Up Box Pin
Brij22-Dec-10 0:34
mentorBrij22-Dec-10 0:34 
GeneralRe: Problem with Security Information Message Pop Up Box Pin
AndyASPVB23-Dec-10 0:01
AndyASPVB23-Dec-10 0:01 
Questionhow to put picture from dtatabase to pictureBox in asp.net ? Pin
Gali197821-Dec-10 9:38
Gali197821-Dec-10 9:38 
AnswerRe: how to put picture from dtatabase to pictureBox in asp.net ? Pin
Not Active21-Dec-10 9:56
mentorNot Active21-Dec-10 9:56 
AnswerRe: how to put picture from dtatabase to pictureBox in asp.net ? Pin
saman padidar22-Dec-10 0:51
saman padidar22-Dec-10 0:51 
GeneralRe: how to put picture from dtatabase to pictureBox in asp.net ? Pin
goldsoft22-Dec-10 3:19
goldsoft22-Dec-10 3:19 
GeneralRe: how to put picture from dtatabase to pictureBox in asp.net ? Pin
Not Active22-Dec-10 3:43
mentorNot Active22-Dec-10 3:43 
QuestionBulk updating values from GridView bound to a datatable [moved] Pin
6,921,364 and growing21-Dec-10 2:47
6,921,364 and growing21-Dec-10 2:47 
AnswerRe: Bulk updating values from GridView bound to a datatable [moved] Pin
6,921,364 and growing23-Dec-10 1:33
6,921,364 and growing23-Dec-10 1:33 
QuestionExport DataGrid to Excel Problem with Code. Pin
Asif Rehman21-Dec-10 1:08
Asif Rehman21-Dec-10 1:08 
AnswerRe: Export DataGrid to Excel Problem with Code. Pin
thatraja23-Dec-10 7:26
professionalthatraja23-Dec-10 7:26 
AnswerRe: Export DataGrid to Excel Problem with Code. Pin
Srinivas_Kotra24-Dec-10 3:32
Srinivas_Kotra24-Dec-10 3:32 

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.