Issue with OnClick event in Chrome for asp.net repeater control
<p>I am trying to save the onclick statistics after the search results are clicked. this is how i have done in ASP.net using repeater control.    </p>

<pre><code>string domainName = String.Format("{0}/{1}", ConfigSettings.ReadConfigValue("DomainName"), loc.DomainName);
string statScript = 
    string.Format("UpdateDealStatistics('MerchantProfile', 'clicked'," + loc.LocationID + "," + merchantID + ",'" + x + "'," + UserID + ", 0," + "'Search Display','" + domainName + "')");                
((HtmlAnchor)e.Item.FindControl("MerchantName")).Attributes.Add("onclick", statScript);

((Literal)e.Item.FindControl("litLocName")).Text = String.Format("{0}", loc.LocationName); 
((Literal)e.Item.FindControl("litLocAdd1")).Text = loc.Address;
((Literal)e.Item.FindControl("litLocCity")).Text = loc.City;
((Literal)e.Item.FindControl("litLocState")).Text = loc.State;
</code></pre>

<p>aspx page:</p>

<pre><code>&lt;asp:Repeater ID="rptSearch" runat="server" OnItemDataBound="rptSearch_ItemDataBound"
    OnItemCommand="rptSearch_ItemCommand"&gt;
    &lt;HeaderTemplate&gt;
    &lt;/HeaderTemplate&gt;
    &lt;ItemTemplate&gt;
       &lt;td class="merchant_item_bg_blank" id="TD_Location" runat="server"&gt;
           &lt;span class="merchant_item_head"&gt;
               &lt;a id="MerchantName" runat="server"&gt;
                   &lt;asp:Literal ID="litLocName" runat="server"&gt;&lt;/asp:Literal&gt;
               &lt;/a&gt;
           &lt;/span&gt;&lt;br /&gt;
           &lt;span class="merchant_items"&gt;
               &lt;asp:Literal ID="litLocAdd1" runat="server"&gt;&lt;/asp:Literal&gt;&lt;br /&gt;
               &lt;asp:Literal ID="litLocCity" runat="server"&gt;&lt;/asp:Literal&gt;,
               &lt;asp:Literal ID="litLocState" runat="server"&gt;&lt;/asp:Literal&gt;
</code></pre>

<p><code>UpdateDealstatistics</code> gets updated fine for IE and Firefox except for chrome. I had spent 2 days on this.</p>

<p>I have no idea what is wrong in here. Please correct me. Thank you in advance!!</p>

<p>For more clarity:</p>

<p>When the link on the Search results is clicked, <code>UpdateDealstatistics</code> calls a function in different page, which saves the count in database. <code>litLocName</code> and <code>litLocAdd1</code>, etc are the literals to display address of the search results. </p>

<p>I hope i am clear :) Thanks guys! </p>
