How can call a jQuery function when it is inside the formview (asp.net control)?
<p>All I have a Span in side the Form view. I wanted to Call a Jquery Fucntion when the from load  how can i do this?</p>

<p>Thanks
Waiting for your reply</p>

<p>here is my code</p>

<pre><code> &lt;asp:FormView ID="FormView1" runat="server" OnItemCommand="FormView1_ItemCommand"&gt;
            &lt;ItemTemplate&gt;
                &lt;asp:HiddenField ID="hidProductID" Value='&lt;%#Eval("ProductID") %&gt;' runat="server" /&gt;
                &lt;asp:HiddenField ID="hidCustomerID" Value='&lt;%#Eval("CustomerID") %&gt;' runat="server" /&gt;
                &lt;a href='&lt;%=WinToSave.SettingsConstants.SiteURL%&gt;WintoSave/AuctionProduct.aspx?id=&lt;%#Eval("ProductID") %&gt;'&gt;
                    &lt;%#Eval("ProductName")%&gt;
                &lt;/a&gt;
                &lt;br /&gt;
                &lt;img src='&lt;%#Eval("ImagePath")%&gt;' alt="Image No available" /&gt;
                &lt;br /&gt;
                &lt;asp:Label ID="lblTime" runat="server" Text='&lt;%#Convert.ToDateTime(Eval("ModifiedOn")).ToString("hh:mm:ss") %&gt;'&gt;&lt;/asp:Label&gt;

                 &lt;span id='Countdown_&lt;%#Eval("ProductID") %&gt;' onload="GetTimeOnLoad('&lt;%#Eval("ModifiedOn")%&gt;','Countdown_&lt;%#Eval("ProductID") %&gt;');"&gt;&lt;/span&gt;
                &lt;br /&gt;
                &lt;asp:Label ID="lblFinalPrice" runat="server" Text='&lt;%#Convert.ToDouble(Eval("FinalPrice")).ToString("#.00")%&gt;'&gt;&lt;/asp:Label&gt;
                &lt;br /&gt;
                &lt;asp:Label ID="lblFullName" runat="server" Text='&lt;%#Eval("FullName") %&gt;'&gt;&lt;/asp:Label&gt;
                &lt;br /&gt;
                &lt;asp:Button ID="btnAddbid" Text="Bid" CommandName="AddBid" CommandArgument='&lt;%#Eval("ID")%&gt;'
                    runat="server" /&gt;
            &lt;/ItemTemplate&gt;
        &lt;/asp:FormView&gt;
</code></pre>

<blockquote>
  <p>and following is my jquery code
  </p>
</blockquote>

<pre><code>   function GetTimeOnLoad(shortly,DivID)
   {
    var dt = new Date(shortly);
    alert(dt);
    alert(shortly);
    alert(DivID);
    var ProductDivID = "#" +DivID;
    alert(ProductDivID);
     $(ProductDivID).countdown({
            until: dt, onExpiry: liftOff, onTick: watchCountdown,
            format: 'HMS', layout: '{hnn}{sep}{mnn}{sep}{snn}'
        });
   }
   function liftOff(){};
   function watchCountdown(){};
</code></pre>

<p></p>

<p>In above code I Used
 ' onload="GetTimeOnLoad('&lt;%#Eval("ModifiedOn")%>','Countdown_&lt;%#Eval("ProductID") %>');">
but is not working </p>
