Quantcast
Channel: FindControl
Viewing all articles
Browse latest Browse all 9

FindControl

$
0
0

Correto!

Em detalhes é o seguinte... no sistema tem 2 CheckBox que pega True ou False do Banco de Dados. O terceiro CheckBox não pega nada do banco de dados, porém tem que ficar como marcado se esses 2 CheckBox estiverem como True.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 
Line 21:         {
Line 22:             CheckBox chkbx = (CheckBox)item.FindControl("rApproval2");Line 23:             chkbx.Checked = true;Line 24:         }    
Line 25:     }


Viewing all articles
Browse latest Browse all 9

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>