• You must ensure that you have declared a definition of each control you're referencing on the .aspx skin file from the .cs code-behind file. For example, if on the .aspx file you have a Textbox control named "txtBoxOne", in the .cs file you'd need to create a referenec for it, like "public textbox txtBoxOne" (whatever the appropriate namespace declaration would be for it).
  • Always check when you are creating an object for a class then use [new keyword] to initialize and allocate memory block to that object... it will resolve the issue of Object reference not set to an instance of an object. Resource:

Copyright 2023, Wired Ivy, LLC

Answerbag | Terms of Service | Privacy Policy