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

FindControl

0
0

Espero que alguém me ajude hehe

Então, eu tenho 1 checkbox e quero colocar o status dele em uma label, porém quando uso o FindControl, ele me retorna o erro abaixo:

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 15: 
Line 16:             CheckBox Approval1 = (CheckBox)RadGrid1.FindControl("rApproval1");Line 17:             string strApproval1 = Approval1.ToString();

E quando uso o 

string strApproval1 = Convert.ToString(Approval1);

Não retorna nada.

Alguém tem alguma solução?


Viewing all articles
Browse latest Browse all 9

Latest Images

Trending Articles





Latest Images