title: replace the href value with label text in asp.net
body: <p>what i am trying to do is sharing a label text value as url link on twitter but its not working as expected. whats wrong with my code ..</p>
  
  <p>my label value is generated from db:</p>
  
  <pre><code>&lt;asp:Label ID="lblReferralURL" runat="server" Text="" ForeColor="Blue" Font-Bold="true"&gt;&lt;/asp:Label&gt;
  
  &lt;a href="https://twitter.com/intent/tweet?url=https://google.com" id="TwitterLink" class="twitter" onclick="window.open(this.href, 'mywin','left=300,top=100,width=650,height=500,toolbar=1,resizable=0'); return false;"&gt;Tweet New&lt;/a&gt;
  
   $(document).ready(function () {
              var para = $('#cphPage_lblReferralURL').html();
              $('#TwitterLink').attr('href', function () {               
  
                  return this.href + '?url=' + para;
              });          
          });  
  </code></pre>