With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!
For Each p As SqlParameter In cmdselect.Parameters ' build a string with label name If p.Value IsNot Nothing Then labelid = "lbl" + p.ParameterName.Substring(1, p.ParameterName.Length - 1) Try Dim myControl1 As Label = CType(FindControl(labelid), Label) If myControl1.ID = labelid Then myControl1.Text = p.Value End If Catch ex As Exception End Try End If Next '
the above works, but is slow, thinking I need Dim ctl As Control dim ctlarray as array Dim mypanel As View mypanel = FindControl("viewbudetrypricing") For Each ctl In mypanel.Controls ctlarray(count) = ctl.id Next
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.