Server Error in '/' Application.

DataBinding: 'System.Char' does not contain a property with the name 'category_name'.

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.Char' does not contain a property with the name 'category_name'.

Source Error:


Line 20: <asp:DataList ID="DataList2" style=" width:100%;" runat="server" RepeatDirection="Horizontal" RepeatColumns="1">
Line 21:  <ItemTemplate> 
Line 22:   <a href='<%# string.Format("Greeting-Cards.aspx?category={0}", HttpUtility.UrlEncode(Eval("category_name").ToString())) %>'> 
Line 23:  <div class="greeting_card-top">
Line 24:  <div style=" height:auto; width:96.3%; background-color:#F18500; padding:5px; float:left; color:#fff; text-align:center; margin-bottom:5px ">

Source File: c:\inetpub\vhosts\jainpuja.com\httpdocs\jain-puja\diwali-greeting-cards.aspx    Line: 22

Stack Trace:


[HttpException (0x80004005): DataBinding: 'System.Char' does not contain a property with the name 'category_name'.]
   System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +2900106
   System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts) +86
   System.Web.UI.DataBinder.Eval(Object container, String expression) +95
   System.Web.UI.TemplateControl.Eval(String expression) +43
   ASP.jain_puja_diwali_greeting_cards_aspx.__DataBind__control3(Object sender, EventArgs e) in c:\inetpub\vhosts\jainpuja.com\httpdocs\jain-puja\diwali-greeting-cards.aspx:22
   System.Web.UI.Control.OnDataBinding(EventArgs e) +84
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +150
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +185
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +160
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +136
   System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +647
   System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +64
   System.Web.UI.WebControls.BaseDataList.DataBind() +81
   jain_puja_diwali_greeting_cards.greeting_cards1() in c:\inetpub\vhosts\jainpuja.com\httpdocs\jain-puja\diwali-greeting-cards.aspx.cs:37
   jain_puja_diwali_greeting_cards.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\jainpuja.com\httpdocs\jain-puja\diwali-greeting-cards.aspx.cs:17
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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