how to update label value of gridview with another value
<p>I have gridview with ajax rating control where i am updating rating value on change event and i am saving that data into the database using sql datasource and i want to show that change value into another label .But when i am updating the value it makes change in database but not in the label. please tell me how can i change lbel value at that same time i am using these code.</p>

<pre><code> &lt;asp:GridView ID="GVTweet" runat="server" AllowSorting="True" DataKeyNames="id" AllowPaging="true"
                               AutoGenerateColumns="False" GridLines="Horizontal" PageSize="15" Width="700px"
                               onselectedindexchanged="GVTweet_SelectedIndexChanged" 
                               onrowcancelingedit="GVTweet_RowCancelingEdit" 
                               onrowediting="GVTweet_RowEditing" 
                               onrowupdated="GVTweet_RowUpdated" onrowupdating="GVTweet_RowUpdating" 
                               DataSourceID="SqlDataSource2" 
                               onpageindexchanging="GVTweet_PageIndexChanging" &gt;

&lt;HeaderStyle /&gt;
                               &lt;Columns&gt;
&lt;asp:TemplateField HeaderImageUrl="~/images/rate1.png" 
                                        HeaderStyle-CssClass="headerCss1" HeaderText="Rate(1-5)" 
                                        SortExpression="Rating" &gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;table border="0" cellpadding="0" cellspacing="0" width="auto"&gt;
                                                &lt;tr style="width:150px;" valign="top" &gt;
                                                    &lt;td style="height:30px;"&gt;
                                                    &lt;asp:Label ID="lblTotalRate" runat="server" 
                                                            Text='&lt;%#DataBinder.Eval(Container.DataItem, "TotalRate")%&gt;'&gt;&lt;/asp:Label&gt;

                                                    &lt;/td&gt;
                                                &lt;/tr&gt;   
                                                &lt;tr style="width:150px;" valign="top" &gt;
                                                    &lt;td style="height:30px;"&gt;

                                                        &lt;asp:UpdatePanel ID="updtpnlTweet" runat="server"&gt;
                                                            &lt;ContentTemplate&gt;
                                                                &lt;cc1:Rating ID="rateTweet" runat="server" CurrentRating='&lt;%# Bind("Rating") %&gt;' 
                                                                    EmptyStarCssClass="empatyStarRating" FilledStarCssClass="filledStarRating" 
                                                                    MaxRating="5" onchanged="rateTweet_Changed" StarCssClass="ratingStar"
                                                                    WaitingStarCssClass="savedStarRating"&gt;
                                                                &lt;/cc1:Rating&gt;
                                                            &lt;/ContentTemplate&gt;
                                                        &lt;/asp:UpdatePanel&gt;
                                                    &lt;/td&gt;
                                                &lt;/tr&gt;
                                            &lt;/table&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;HeaderStyle CssClass="headerCss1" /&gt;
                                &lt;/asp:TemplateField&gt;
</code></pre>

<p>this is html that i using and i want that rating value after updation in this label lblTotalRate.</p>

<pre><code>protected void rateTweet_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
{
    try
    {
        // cast rating control which has initiated the call:
        AjaxControlToolkit.Rating myRating = (AjaxControlToolkit.Rating)sender;
        // regular expression which will help identifying row number: 
        System.Text.RegularExpressions.Regex rexLineNo = new System.Text.RegularExpressions.Regex("ctl\\d+");
        // update the record based on the recodrd id
        this.updateRating(this.ProductId(rexLineNo.Match(myRating.UniqueID).ToString()), e.Value);
        // the above line does the following: 
        // rexLineNo.Match(myRating.UniqueID).ToString() - finds "ctl and line number 

        //GVTweet.DataSourceID = "SqlDataSource2";
       // GVTweet.DataBind();
        GVTweet_RowUpdated( sender2, e2);
     //   this.Page.Form.Action = "AddRating()";

       // SqlDataSource2_Updated(sender1, e1);

    }
    catch
    {

    }

}
</code></pre>

<p>If any buddy has please tell me .javascript and both is ok for me.</p>

<p>This is code behind code</p>

<pre><code>enter code here
</code></pre>
