accessing dynamic control

Results 1 to 2 of 2

Thread: accessing dynamic control

  1. #1
    Join Date
    Dec 1969

    Default accessing dynamic control

    i created dynamic controls using below code in webform load.<BR>but i am not able to access that control any where in page (WHEN I CODE) that is other events ex:- i want know created <BR>textbox.TEXT in another button click event<BR><BR>for I=1 to 5<BR>Dim ctrlDropDown = New System.Web.UI.WebControls.DropDownList<BR>Dim ctrlCheckBox = New System.Web.UI.WebControls.CheckBox<BR>Dim ctrlTextBox1 = New System.Web.UI.WebControls.TextBox<BR>Dim ctrlTextBox2 = New System.Web.UI.WebControls.TextBox<BR><BR>ctrlCheck Box.ID = "cbDynamic" & I<BR>ctrlTextBox1.ID = "tb1Dynamic" & I<BR>ctrlTextBox2.ID = "tb2Dynamic" & I<BR>ctrlDropDown.ID = "ddlDynamic" & I<BR>next<BR><BR>THANKS

  2. #2
    Join Date
    Dec 1969

    Default Don't you have to actually..

    .. add them as controls to the page?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts