Friday, May 23, 2014

Explicitly find a DevExpress control in web forms in the name of using it on the C# side!

It takes some getting used to to do this...

var noticeForNoRecords = group.FindControl("NoticeForNoRecords") as ASPxLabel;
noticeForNoRecords.Text = "Hello";

 
 

...instead of just this:

NoticeForNoRecords.Text = "Hello";

No comments:

Post a Comment