Click here to Skip to main content
15,920,217 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear,

I wrote below code when grid update then fire that code and set the value in TextBox/Label.

I debug the below code and see the Value is getting but not showing in TextBox/Label.

When it showing when the complete page getting refreshed.

I called in Page_Load also.

VB
Private Sub frm_getObjectivescore()
    con.Open()
    cmd = New SqlClient.SqlCommand("select sum(Value) as T_Count from View_EmployeeApraisalDetails2 Where Apr_No=" & Request("Apr_No") & "", con)
    dr = cmd.ExecuteReader()
    If dr.HasRows Then
        While dr.Read
            TextBox1.Text = Math.Round(dr("T_Count") * 0.4, 2)
        End While
    End If
    con.Close()
End Sub
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900