fakhravari
جمعه 15 مهر 1390, 00:00 صبح
با سلام
دوستان من یک label دارم توی یک گرید در یک UserControl
حالا می خواهم دسترسی داشته باشم با این کد ها نمیشه مشکل از کجان؟
Label aa = (Label)this.FindControl("Label2");
aa.Text = "sfsf";
Label l1 = (Label)GridView2.FindControl("Label1");
l1.Text = "safasfas";
دوستان من یک label دارم توی یک گرید در یک UserControl
حالا می خواهم دسترسی داشته باشم با این کد ها نمیشه مشکل از کجان؟
Label aa = (Label)this.FindControl("Label2");
aa.Text = "sfsf";
Label l1 = (Label)GridView2.FindControl("Label1");
l1.Text = "safasfas";