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

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

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