title: Error: too many characters in character literal asp.net
body: <p>I'm getting this error while binding data to data list 
  too many characters in character literal asp.net</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="android.aspx.cs" Inherits="finalproject.android" %&gt;
  
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server"&gt;
      &lt;style type="text/css"&gt;
  .style1
  {
      width:900px;
  }
  .style2
  {
      width:633px;
      text-align:left;
  }
  .style4
  {
      width:185px;
      text-align:center;
  }
  &lt;/style&gt;
  &lt;/asp:Content&gt;
  
  &lt;asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"&gt;
      &lt;asp:DataList ID="DataList1" runat="server" DataKeyField="modelid" 
          style="text-align: center; color: #333333;" RepeatColumns="3"
          Width="283px" DataSourceID="SqlDataSource2" CellPadding="3" 
      BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" 
      CellSpacing="1" &gt;
          &lt;FooterStyle BackColor="#C6C3C6" ForeColor="Black" /&gt;
          &lt;HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" /&gt;
          &lt;ItemStyle BackColor="#DEDFDE" ForeColor="Black" /&gt;
          &lt;ItemTemplate&gt;
              &lt;br /&gt;
              &lt;div align="left"&gt;&lt;/div&gt;
              &lt;table cellspacing="1" class="style4" style="border:1px ridge #9900FF"&gt;
                  &lt;tr&gt;
                      &lt;td style="border-bottom-style:ridge; border-width: 1px; border-color: #000000"&gt;
                          &lt;asp:Label ID="Label1" runat="server" Text="&lt;%# Eval('brand') %&gt;"&gt;&lt;/asp:Label&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          &lt;asp:ImageButton ID="ImageButton1" runat="server" Height="252px"
                              ImageUrl="&lt;%# Image %&gt;" style="margin-left: 0px" /&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          ModelID&lt;asp:Label ID="Label2" runat="server" Text="&lt;%# Eval('modelid') %&gt;"&gt;&lt;/asp:Label&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          &lt;asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
                              CommandArgument="&lt;%# Bind('ModelID') %&gt;" Text="Add to Cart" Width="100%" BorderColor="Black" BorderStyle="Inset" BorderWidth="1px" /&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
              &lt;br /&gt;
          &lt;/ItemTemplate&gt;
          &lt;SelectedItemStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" /&gt;
      &lt;/asp:DataList&gt;
      &lt;asp:SqlDataSource ID="SqlDataSource2" runat="server" 
      ConnectionString="&lt;%$ ConnectionStrings:VISHConnectionString2 %&gt;" 
      SelectCommand="SELECT [Image], [modelid], [brand] FROM [adddetails]"&gt;
  &lt;/asp:SqlDataSource&gt;
      &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
          &lt;ContentTemplate&gt;
              &lt;table align="left" class="style2"&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          &lt;asp:Label ID="Label3" runat="server" style="color: #333333"&gt;&lt;/asp:Label&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          &amp;nbsp;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          &amp;nbsp;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          &amp;nbsp;&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;/ContentTemplate&gt;
      &lt;/asp:UpdatePanel&gt;
  &lt;/asp:Content&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I'm getting this error while binding data to data list 
  too many characters in character literal asp.net</p>