﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » How to prevent duplicated markup generated?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 00:17:15 GMT</lastBuildDate><ttl>20</ttl><item><title>How to prevent duplicated markup generated?</title><link>http://forum.strataframe.net/FindPost20035.aspx</link><description>Hi,&lt;br&gt;
I have subclassed GridView as my development BaseGirdView. I would like to set certain properties so that all derived GridView has same layout and behavior. I put my code under a method which will be called from BaseGirdView constructor.&lt;br&gt;
&lt;br&gt;
I faced problem that:&lt;br&gt;
&lt;br&gt;
1. Developer unable to "override" certain settings (property setting) since it is "default" in base class.&lt;br&gt;
2. I have code to auto add column and template to GridView header. When I change any value using propertysheet, VS auto generate markup tag for me and cause multiple column/template markup tag added to aspx. Even though I have code to add column/template only if they are not exist, but it doesn't work.&lt;br&gt;
&lt;br&gt;
How to solve this problem?&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Sun, 12 Oct 2008 20:40:13 GMT</pubDate><dc:creator>Chan</dc:creator></item></channel></rss>