Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to Allow only numbers for TextBox Pin
wasimsharp24-Jun-08 22:44
wasimsharp24-Jun-08 22:44 
AnswerRe: How to Allow only numbers for TextBox Pin
User 665824-Jun-08 22:28
User 665824-Jun-08 22:28 
GeneralRe: How to Allow only numbers for TextBox Pin
leppie24-Jun-08 22:37
leppie24-Jun-08 22:37 
GeneralRe: How to Allow only numbers for TextBox Pin
User 665825-Jun-08 0:50
User 665825-Jun-08 0:50 
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 

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.