Problem with Generate Local Resource and My simple custom control
<p>I have created simple controls that are based on dot net controls . For example there is a simple GridView control that is based on dot net GridView control , I just set some setting in my control to use it in my .aspx pages , for example I set the Width of GridView in the constructor method : </p>

<pre><code>// constructor of my custom class
public GridView(): base()
        {
            this.Width = new Unit(100, UnitType.Percentage);
        }
</code></pre>

<p>and also I've added some custom properties :</p>

<pre><code>    public int SelectedID
    {
        get
        {
            if (ViewState["SelectedID" + this.ID] == null)
                ViewState["SelectedID" + this.ID] = "-1";
            return Convert.ToInt32(ViewState["SelectedID" + this.ID]);
        }
        set
        {
            ViewState["SelectedID" + this.ID] = value;
        }
    }
</code></pre>

<p>The <strong>*<em>Problem</em>*</strong> : when I use Tools>Generate Local Resource in VS2010</p>

<p>the aspx markup before I use this tool is like this : </p>

<pre><code>&lt;RPC:GridView ID="grdData" runat="server" onrowcommand="grdData_RowCommand"&gt;
</code></pre>

<p>but this tool adds any public property or any setting to my aspx markup , like this :</p>

<pre><code>&lt;RPC:GridView ID="grdData" runat="server" onrowcommand="grdData_RowCommand"                                                 
                                                meta:resourcekey="grdDataResource1" SelectedID="-1" Width="100%"&gt;
</code></pre>

<p>I don't like VS2010 add my settings (like width) and my custom properties (like SelectedID) to aspx markup , this prevent me having the ability of changing my custom control code and reflect changes in all aspx pages that include this control , for example if</p>

<p>I change the width of my control to 50% , it doesn't reflect to any pages</p>

<p>Please tell me what should I do to fix my problem</p>

<p>Thank you very much for your feedbacks </p>
