views:

176

answers:

0

I get this error when i try and edit a row on the tables that have keys connecting to the "AvailableHostname" table. All other tables edit fine. How can i fix this? Thank you so much for your help in advance.

The error: Multiple controls with the same ID 'AvailableHostname' were found. FindControl requires that controls have unique IDs.

[HttpException (0x80004005): Multiple controls with the same ID 'AvailableHostname' were found. FindControl requires that controls have unique IDs.] System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +220 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +280 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +280 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +280 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +280 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +280 System.Web.UI.Control.EnsureNamedControlsTable() +57 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +106 System.Web.UI.Control.FindControl(String id) +9 SubSonic.Scaffold.BindEditor(Table tableSchema, String keyId) in C:\Program Files\SubSonic\SubSonic 2.1 Final\src\SubSonic\Controls\Scaffold.cs:1172 SubSonic.Scaffold.CreateChildControls() in C:\Program Files\SubSonic\SubSonic 2.1 Final\src\SubSonic\Controls\Scaffold.cs:713 SubSonic.Scaffold.grid_RowEditing(Object sender, GridViewEditEventArgs e) in C:\Program Files\SubSonic\SubSonic 2.1 Final\src\SubSonic\Controls\Scaffold.cs:1626 System.Web.UI.WebControls.GridView.OnRowEditing(GridViewEditEventArgs e) +133 System.Web.UI.WebControls.GridView.HandleEdit(Int32 rowIndex) +40 System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +673 System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +199 System.Web.UI.WebControls.GridView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746