c# - Access Controls from UserControls in ASPX page -


how access controls usercontrols in aspx page? example: want access gridview in usercontrol on aspx page.

please me.

try :

gridview gridview1 = (gridview)webusercontrol1.findcontrol("gridview1"); 

where webusercontrol1 id of use control on .aspx page.

hope helps..


Comments

Popular posts from this blog

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -

How do I get the nth item in a queue in java? -

How to read input from STDIN in x86_64 assembly? -