Community discussion forum

Control Collection

Tags:
  • 8 months ago

     What's your point?

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 8 months ago

    Hi there,

    Putting your controls in a PlaceHolder, you can get your controls with "Controls" property of PlaceHolder.

    DirectCast(PlaceHolder1.Controls(0), TextBox).Text
  • 8 months ago

    Hi there,

        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Me.Load
    AddHandler DirectCast(PlaceHolder1.Controls(0), Button).Click, AddressOf Button1_Click
    End Sub

    Public Sub Button1_Click(ByVal s As Object, ByVal e As EventArgs)
    Response.Write("OK")
    End Sub

Post a reply

Enter your message below

Sign in or Join us (it's free).