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.
Private Sub frm_getObjectivescore()
con.Open()
cmd = New SqlClient.SqlCommand("select sum(Value) as T_Count from View_EmployeeAp 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

Sujeet SumanRank #790 · 2.9K reputationPosted Oct 10, 2015, 9:56 PM EDT
Priyaranjan K SRank #45 · 32.5K reputationPosted Oct 10, 2015, 9:58 PM EDT
Basit KhanRank #4,768 · 326 reputationPosted Oct 10, 2015, 10:15 PM EDT
Priyaranjan K SRank #45 · 32.5K reputationPosted Oct 10, 2015, 10:27 PM EDT
Sujeet SumanRank #790 · 2.9K reputationPosted Oct 10, 2015, 11:09 PM EDT
Basit KhanRank #4,768 · 326 reputationPosted Oct 10, 2015, 11:35 PM EDT
Priyaranjan K SRank #45 · 32.5K reputationPosted Oct 10, 2015, 11:49 PM EDT
Sujeet SumanRank #790 · 2.9K reputationPosted Oct 11, 2015, 1:21 AM EDT
Rupali ShindeRank #539 · 4.5K reputationPosted Oct 16, 2015, 1:44 AM EDT