Every time the page refresh time difference vary in different browsers and in the same browser.
If anyone have solution for above please tell me.
m_ds = indexDAL.getcontent();
if (m_ds.Tables[0].Rows.Count > 0)
{
for (int m = 0; m < m_ds.Tables[0].Rows.Count; m++)
{
auc_id = Convert.ToInt64(m_ds.Tables[0].Rows[m]["id"].ToString());
string aid = m_ds.Tables[0].Rows[m]["id"].ToString();
startingtime = Convert.ToDateTime(m_ds.Tables[0].Rows[m]["StartDateTime"].ToString());
System.TimeSpan result = startingtime.Subtract(DateTime.Now);
string time123 = result.Hours.ToString() + ":" + result.Minutes.ToString() + ":" + result.Seconds.ToString();
if (result.TotalSeconds >= 0)
{
int x = indexDAL.InsertStartTime(auc_id, time123);
}
}
}
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:DataList ID="PrdDataList" runat="server" RepeatDirection="Horizontal"
RepeatColumns="5" DataKeyField="id"
onitemdatabound="PrdDataList_ItemDataBound"
onitemcommand="PrdDataList_ItemCommand" >
<ItemTemplate>
<table border="0" cellspacing="0" cellpadding="0" class="box2">
<tr>
<td class="hd">
<asp:label ID="lblPrdCode" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ProductCode")%>' Visible="false"></asp:label>
<span>Auction</span><asp:label ID="lblid" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "id")%>'></asp:label>
</td>
</tr>
<tr>
<td class="bg">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td><h2><%# DataBinder.Eval(Container.DataItem, "AuctionTitle")%></h2></td>
</tr>
<tr>
<td><asp:LinkButton ID="btnimage" CommandName="imageclick" runat="server" CausesValidation="true" ><div class="overlap"><asp:Image Width="80px" Height="80px" ID="Image1" ImageUrl=' <%# Bind("ImageNm", "~/Admin/ProductImages/{0}") %>' runat="server" /><asp:Image ID="sold_small" src="Images/sold_small_en.png" alt="bar" runat="server" Visible="false"/></div></asp:LinkButton></td>
</tr>
<tr>
<td class="tab"><asp:Label ID="lblbidprice" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "CurrentProductPrice") %>' style="padding-left:20px; font-weight:bold;color:#FFF;font-size:16px;"></asp:Label>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblTimeWatch" runat="server"
style="color:#0099FF; font-weight: 600; font-size: 20px"
Text='<%# DataBinder.Eval(Container.DataItem, "timeDiff") %>'
></asp:Label>
<asp:Label ID="lblTimeWatch1" runat="server"
style="color:#0099FF; font-weight: 600; font-size: 22px" ></asp:Label>
<asp:Timer ID="BidTimer" runat="server" Interval="1000" ontick="BidTimer_Tick">
</asp:Timer>
<input id="mseconds" runat="server" type="hidden" />
<input id="second" runat="server" type="hidden" />
<input id="minute" type="hidden" runat="server" />
<input id="hour" type="hidden" runat="server" />
<input id="day" type="hidden" runat="server" />
</td>
</tr>
<tr>
<td>
<table>
<tr>
<td id="tdbidder" runat="server" height="10" align="center">
<asp:DataList ID="dlbidder" runat="server" GridLines="None">
<ItemTemplate>
<span class="name"><%#Eval("UserId") %></span>
</ItemTemplate>
</asp:DataList>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td >
<asp:LinkButton ID="btnBid" runat="server" CommandName="select" CausesValidation="true"><asp:Image ID="imgFolder" runat="server" ImageUrl="~/Images/btn_bid.png" /></asp:LinkButton>
</td>
</tr>
<tr>
<td align="center" >
<div id="boxbtmbynow" style="vertical-align:middle;">
<asp:LinkButton ID="A1" runat="server" CommandName="buynow"><font style="font-weight:bold; color: White;">Buy Now:<span><img alt="rs" src="Images/10px inr.png" /></span>
<%#DataBinder.Eval(Container.DataItem, "Price")%></font></asp:LinkButton>
</div>
</td>
<%--<td>
<b>Buy Now:</b>
<span><img alt="rs" src="Images/10px inr.png" /></span>
<%#DataBinder.Eval(Container.DataItem,"Price") %>
</td>--%>
</tr>
<tr><td class="btm"></td></tr>
</table>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</ContentTemplate>
</asp:UpdatePanel>
m_ds = indexDAL.getcontent();