Hi.
I've tryed to implement the code in object but when I select a row in grid view, I get the following error:
Quote:
Server Error in '/tmpSite' Application.
--------------------------------------------------------------------------------
Cannot find column ['ANTON'].
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.EvaluateException: Cannot find column ['ANTON'].
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[EvaluateException: Cannot find column ['ANTON'].]
System.Data.NameNode.Bind(DataTable table, List`1 list) +1186845
System.Data.BinaryNode.Bind(DataTable table, List`1 list) +42
System.Data.DataExpression.Bind(DataTable table) +59
System.Data.DataExpression..ctor(DataTable table, String expression, Type type) +4818583
System.Data.DataView.set_RowFilter(String value) +153
System.Web.UI.WebControls.FilteredDataSetHelper.Cr eateFilteredDataView(DataTable table, String sortExpression, String filterExpression, IDictionary filterParameters) +386
System.Web.UI.WebControls.SqlDataSourceView.Execut eSelect(DataSourceSelectArguments arguments) +1610
System.Web.UI.DataSourceView.Select(DataSourceSele ctArguments arguments, DataSourceViewSelectCallback callback) +19
System.Web.UI.WebControls.DataBoundControl.Perform Select() +142
System.Web.UI.WebControls.BaseDataBoundControl.Dat aBind() +73
System.Web.UI.WebControls.DetailsView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.Ens ureDataBound() +82
System.Web.UI.WebControls.DetailsView.EnsureDataBo und() +184
System.Web.UI.WebControls.BaseDataBoundControl.OnP reRender(EventArgs e) +22
System.Web.UI.WebControls.DetailsView.OnPreRender( EventArgs e) +17
System.Web.UI.Control.PreRenderRecursiveInternal() +80
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
|
Can anybody suggest me how to correct the source code?
Note that 'ANTON' is the key of the GridView's row I selected.
Thx.