TemplateField
How to localize a BoundField / TemplateField HeaderText
Submitted by Ben Hodson on Sun, 07/13/2008 - 19:00
In order to localize a HeaderText property, you can use the common:
HeaderText='<%= MyResources.str_ResourceName1; %>'
Find a control in a TemplateField programmatically
Submitted by Ben Hodson on Wed, 03/19/2008 - 20:56
When you add a DetailsView or GridView control to your page, you may need to programmatically access that control in the code behind. You might look at the System.Web.UI.Page object and see it has a FindControl (http://msdn2.microsoft.com/en-us/library/31hxzsdw.aspx) method built in for you. If you thought that you could get ANY control on the page...
You would be wrong.
Popular Articles
Last viewed:
- Performance benchmarks for LINQ vs. SqlDataReader, DataSet - LINQ Compiled Queries: Part 2
- Performance benchmarks for LINQ vs. SqlDataReader, DataSet - Selects: Part 1
- Using Nullable Data Types with C#
- ObjectDataSource TypeName with Constructor Parameters
- Export GridView or Other Data as Microsoft Excel (CSV) File with C#
- Fix for Firefox click() event issue

Recent comments
1 day 11 hours ago
5 days 3 hours ago
1 week 2 days ago
1 week 6 days ago
2 weeks 1 day ago
2 weeks 6 days ago
3 weeks 8 hours ago
3 weeks 11 hours ago
3 weeks 5 days ago
4 weeks 2 days ago