Server Error in '/' Application.

DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'lname'.

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.Web.HttpException: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'lname'.

Source Error:


Line 75:                                  <tr>
Line 76:                                     <td style="">                                        
Line 77:                                     <a style="text-decoration:none" href="/IPO/IPO-Synopsis/Forthcoming-Issues/<%#DataBinder.Eval(Container.DataItem, "lname").ToString().Replace(" ", "-").Replace("&", "and").Replace(".", "")%>/<%#DataBinder.Eval(Container.DataItem,"co_code")%>" title="<%#DataBinder.Eval(Container.DataItem, "lname").ToString()%>" class="links_head"><%#Sunidhi2018.BusinessData.CommonFunctions.FormatString(DataBinder.Eval(Container.DataItem, "lname").ToString(), 17)%></a>
Line 78:                                      <td><%#FormatFunctions.C_Format.M_FormatDate(DataBinder.Eval(Container.DataItem, "LISTDATE").ToString(), "dd-MMM-yy")%></td>
Line 79:                                    <td><%#FormatFunctions.C_Format.M_FormatComma(DataBinder.Eval(Container.DataItem, "LISTPRICE").ToString(), "2", "0")%></td>

Source File: d:\WWW\Sunidhi\IPO\Best-Performers.aspx    Line: 77

Stack Trace:


[HttpException (0x80004005): DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'lname'.]
   System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +3950782
   System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts) +95
   ASP.ipo_best_performers_aspx.__DataBind__control8(Object sender, EventArgs e) in d:\WWW\Sunidhi\IPO\Best-Performers.aspx:77
   System.Web.UI.Control.OnDataBinding(EventArgs e) +100
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +178
   System.Web.UI.Control.DataBindChildren() +248
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +195
   System.Web.UI.WebControls.ListView.CreateItemsWithoutGroups(ListViewPagedDataSource dataSource, Boolean dataBinding, InsertItemPosition insertPosition, ArrayList keyArray) +1188
   System.Web.UI.WebControls.ListView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +1284
   System.Web.UI.WebControls.ListView.PerformDataBinding(IEnumerable data) +53
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +208
   System.Web.UI.WebControls.ListView.PerformSelect() +128
   Sunidhi2018.IPO.Best_Performers.FillData(String Exchg, String strFrmdate, String strTodate) +259
   Sunidhi2018.IPO.Best_Performers.Page_Load(Object sender, EventArgs e) +610
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4380.0