Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.
'Control from which the event is fired Dim cell14 As New TableCell() Dim txt14 As New TextBox txt14.ID = "txt_qty_" & reader(0) txt14.Font.Bold = True txt14.AutoPostBack = True txt14.Text = 0 txt14.Width = "40" cell14.Controls.Add(txt14) trow2.Cells.Add(cell14) AddHandler txt14.TextChanged, AddressOf Me.TextBox_TextChanged 'control to update Dim cell15 As New TableCell() Dim txt15 As New TextBox txt15.ID = "txt_sellperu_" & reader(0) txt15.Text = 0 txt15.Font.Bold = True txt15.Width = "60" cell15.Controls.Add(txt15) trow2.Cells.Add(cell15) 'Text change handler Protected Sub TextBox_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Dim From As TextBox = DirectCast(sender, TextBox) Dim ProdType As String = From.ID.Substring((Len(From.ID)) - 1, 1) Dim myctnr As TextBox = FindControl("txt_sellperu_" & ProdType) myctnr.Text = "Hello" End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.