title: Not able to bind database field value properly to anchor tag inside datalist control
body: <p>I have anchor tag inside Data List control. I am binding DataList in code behind and it is working fine. But problem is that I have kept link(url) field in database. To redirect user to this url, I am binding anchor tag with this field. But it is not giving correct address. It is appending my local host(website address) to it at start which I don't want. My code is as below:</p>
  
  <pre><code>&lt;asp:DataList ID="dlPost" runat="server" RepeatColumns="1" RepeatDirection="Vertical"
      Width="755px"&gt;
      &lt;ItemTemplate&gt;
          &lt;article class="post medium"&gt;
  
               &lt;div class="medium-content"&gt;
  
                    &lt;header class="meta"&gt;
                   &lt;h2&gt; &lt;a href ="#"&gt;&lt;asp:Label ID="lblTitle" runat="server" Text='&lt;%#Eval("PostTitle") %&gt;' style="font-weight:600; color:#444444;"&gt;&lt;/asp:Label&gt;&lt;/a&gt;&lt;/h2&gt;
                   &lt;/header&gt;
                   &lt;p&gt; &lt;asp:Label ID="lblPost" runat="server" Text='&lt;%#Eval("Post") %&gt;'&gt;&lt;/asp:Label&gt;&lt;/p&gt;
                   &lt;a href='&lt;%#Eval("PostLink") %&gt;' class="button color"&gt;Job Link&lt;/a&gt;
               &lt;/div&gt;
           &lt;/article&gt;
           &lt;div class="line"&gt;&lt;/div&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:DataList&gt;
  </code></pre>
  
  <p>Below is the part where I am trying to bind url field of database with anchor tag.</p>
  
  <pre><code>&lt;a href='&lt;%#Eval("PostLink") %&gt;' class="button color"&gt;Job Link&lt;/a&gt;
  </code></pre>
  
  <p>So, if Poslink field of database contains <code>www.abc.com</code>, it is redirecting it to <code>http://localhost:54636/CKWeb/www.abc.com</code> instead of <code>www.abc.com</code></p>