Click here to Skip to main content
15,917,005 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to Allow only numbers for TextBox Pin
Gareth H24-Jun-08 22:43
Gareth H24-Jun-08 22:43 
AnswerRe: How to Allow only numbers for TextBox Pin
Abhijit Jana24-Jun-08 23:01
professionalAbhijit Jana24-Jun-08 23:01 
AnswerRe: How to Allow only numbers for TextBox Pin
Mbah Dhaim25-Jun-08 4:21
Mbah Dhaim25-Jun-08 4:21 
QuestionCustom validator error: PropertiesValid throws object reference Pin
livez24-Jun-08 21:44
livez24-Jun-08 21:44 
Hello!

I´ve made a customError-class inheriting from BaseValidator which I use to add error to Page.Validators from code-behind.

public class CustomError : BaseValidator

At first I inherited from IValidator , but I had to be able to set ValidationGroup and so I switched to BaseValidator. Problem is now the PropertiesValid-property of my class always throws an object reference-error. I´m giving ControlToValidate a correct value, so thats not whats causing this. Does anyone have an idea why this error occurs and how I prevent it?

The error looks like this:


[NullReferenceException: Objectreference has not been set to an instance of an object.]

[NullReferenceException: Objectreference has not been set to an instance of an object.]
   System.Web.UI.WebControls.BaseValidator.CheckControlValidationProperty(String name, String propertyName) +23
   System.Web.UI.WebControls.BaseValidator.ControlPropertiesValid() +37
   System.Web.UI.WebControls.BaseValidator.Validate() +58

AnswerRe: Custom validator error: PropertiesValid throws object reference Pin
leppie24-Jun-08 22:02
leppie24-Jun-08 22:02 
QuestionHow i can create a wizard dll Pin
wasimsharp24-Jun-08 21:23
wasimsharp24-Jun-08 21:23 
AnswerRe: How i can create a wizard dll Pin
Christian Graus24-Jun-08 21:44
protectorChristian Graus24-Jun-08 21:44 
GeneralRe: How i can create a wizard dll Pin
wasimsharp24-Jun-08 22:49
wasimsharp24-Jun-08 22:49 
Questiondeleting a file from local disk after putting in DB Pin
laziale24-Jun-08 21:18
laziale24-Jun-08 21:18 
AnswerRe: deleting a file from local disk after putting in DB Pin
Giorgi Dalakishvili24-Jun-08 21:23
mentorGiorgi Dalakishvili24-Jun-08 21:23 
AnswerRe: deleting a file from local disk after putting in DB Pin
wasimsharp24-Jun-08 21:24
wasimsharp24-Jun-08 21:24 
GeneralRe: deleting a file from local disk after putting in DB Pin
laziale24-Jun-08 21:36
laziale24-Jun-08 21:36 
GeneralRe: deleting a file from local disk after putting in DB Pin
laziale24-Jun-08 21:56
laziale24-Jun-08 21:56 
GeneralRe: deleting a file from local disk after putting in DB Pin
wasimsharp24-Jun-08 22:30
wasimsharp24-Jun-08 22:30 
GeneralRe: deleting a file from local disk after putting in DB Pin
Giorgi Dalakishvili24-Jun-08 22:00
mentorGiorgi Dalakishvili24-Jun-08 22:00 
AnswerRe: deleting a file from local disk after putting in DB Pin
leppie24-Jun-08 21:57
leppie24-Jun-08 21:57 
Questiondistributed computing?? Pin
Camilo Sanchez24-Jun-08 20:25
Camilo Sanchez24-Jun-08 20:25 
AnswerRe: distributed computing?? Pin
Marek Grzenkowicz24-Jun-08 22:49
Marek Grzenkowicz24-Jun-08 22:49 
GeneralRe: distributed computing?? Pin
Camilo Sanchez25-Jun-08 16:53
Camilo Sanchez25-Jun-08 16:53 
GeneralRe: distributed computing?? Pin
Marek Grzenkowicz26-Jun-08 1:07
Marek Grzenkowicz26-Jun-08 1:07 
QuestionUSP Implemenation Pin
sher_azam24-Jun-08 20:22
sher_azam24-Jun-08 20:22 
AnswerRe: USP Implemenation Pin
Ashfield24-Jun-08 21:14
Ashfield24-Jun-08 21:14 
QuestionCannot marshal 'return value': Pointers cannot reference marshaled structures? Pin
cristi_alonso24-Jun-08 20:18
cristi_alonso24-Jun-08 20:18 
AnswerRe: Cannot marshal 'return value': Pointers cannot reference marshaled structures? Pin
leppie24-Jun-08 22:42
leppie24-Jun-08 22:42 
Questionconnect network PC Pin
Rinki Mukheraji24-Jun-08 19:38
Rinki Mukheraji24-Jun-08 19:38 

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.