Server Error in '/vision' Application. Column 'ClientNAme' does not belong to table Table. 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.ArgumentException: Column 'ClientNAme' does not belong to table Table. Source Error: Line 280: for (int i = 0; i < ds.Tables[0].Rows.Count; i++) Line 281: { Line 282: dropDownClient.Items.Add(ds.Tables[0].Rows[i]["ClientNAme"].ToString()); Line 283: } Line 284: } Source File: d:\VSS\Published\Site\login.aspx.cs Line: 282 Stack Trace: [ArgumentException: Column 'ClientNAme' does not belong to table Table.] System.Data.DataRow.GetDataColumn(String columnName) +1775477 System.Data.DataRow.get_Item(String columnName) +13 logint.BindClientList() in d:\VSS\Published\Site\login.aspx.cs:282 logint.Page_Load(Object sender, EventArgs e) in d:\VSS\Published\Site\login.aspx.cs:43 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { dropDownClient.Items.Add(ds.Tables[0].Rows[i]["ClientNAme"].ToString()); dropDownClient.Items.Add(ds.Tables[0].Rows[i][1].ToString());//change Like this }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)