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 : 

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

```

and also I've added some custom properties :

```
    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;
        }
    }

```

The **\**Problem*\*** : when I use Tools>Generate Local Resource in VS2010

the aspx markup before I use this tool is like this : 

```
<RPC:GridView ID="grdData" runat="server" onrowcommand="grdData_RowCommand">

```

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

```
<RPC:GridView ID="grdData" runat="server" onrowcommand="grdData_RowCommand"                                                 
                                                meta:resourcekey="grdDataResource1" SelectedID="-1" Width="100%">

```

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

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

Please tell me what should I do to fix my problem

Thank you very much for your feedbacks