dynamically created control is not being validated

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default dynamically created control is not being validated

    I have a user control that contains a custom control, both are loaded
    dynamically.

    The custom control has a simple required field validator and a text box to
    validate.

    When the submit button in the user control is pressed the textbox does not
    seem to be validated.

    How do I even begin to troubleshoot this?
    My dynamically created controls are created in the load event.


    Thank you in advance for any help.

    stan


    DesignerX Guest

  2. Similar Questions and Discussions

    1. Managing ViewState of a dynamically created Custom Composite Server Control -(where the original is also dynamically created)
      Ok here's my scenario. I have a Custom Composite Server Control (CCSC) consisting of a TextBox, Button & Panel. (And some other code - which I...
    2. Composite Web Control and Dynamically Created Children Controls.
      Hi I am developing a web control which creates other web controls. During the OnInit of the my web control I read an Xml file which tells my web...
    3. Dynamically created control in Datagrid problem
      I created a datagrid with 4 bound columns and 1 template column. I am using the ITEMDATABOUND event to add a control to the template column, if...
    4. need help with dynamically created user control
      i have a dynamically created user control which contains a non-dynamically created ASP.Net button. When the button is clicked, the event is not...
    5. returning values from dynamically created user control
      Hi, I've got a fairly simple date control, that I'm creating dynamically in my page. The reason for creating it dynamically is that I want the...
  3. #2

    Default Re: dynamically created control is not being validated

    Try putting the control creation into Page's Init.

    --
    Teemu Keiski
    MCP, Designer/Developer
    Mansoft tietotekniikka Oy
    [url]http://www.mansoft.fi[/url]

    AspInsiders Member, [url]www.aspinsiders.com[/url]
    ASP.NET Forums Moderator, [url]www.asp.net[/url]
    AspAlliance Columnist, [url]www.aspalliance.com[/url]

    "DesignerX" <designerx2@yahoo.com> wrote in message
    news:7KqcnZMQFcBJcYKiRTvUqw@giganews.com...
    > I have a user control that contains a custom control, both are loaded
    > dynamically.
    >
    > The custom control has a simple required field validator and a text box to
    > validate.
    >
    > When the submit button in the user control is pressed the textbox does not
    > seem to be validated.
    >
    > How do I even begin to troubleshoot this?
    > My dynamically created controls are created in the load event.
    >
    >
    > Thank you in advance for any help.
    >
    > stan
    >
    >

    Teemu Keiski Guest

  4. #3

    Default Re: dynamically created control is not being validated

    And was going to say that post some code.


    --
    Teemu Keiski
    MCP, Designer/Developer
    Mansoft tietotekniikka Oy
    [url]http://www.mansoft.fi[/url]

    AspInsiders Member, [url]www.aspinsiders.com[/url]
    ASP.NET Forums Moderator, [url]www.asp.net[/url]
    AspAlliance Columnist, [url]www.aspalliance.com[/url]

    "Teemu Keiski" <joteke@aspalliance.com> wrote in message
    news:eXK0VKgUDHA.216@TK2MSFTNGP10.phx.gbl...
    > Try putting the control creation into Page's Init.
    >
    > --
    > Teemu Keiski
    > MCP, Designer/Developer
    > Mansoft tietotekniikka Oy
    > [url]http://www.mansoft.fi[/url]
    >
    > AspInsiders Member, [url]www.aspinsiders.com[/url]
    > ASP.NET Forums Moderator, [url]www.asp.net[/url]
    > AspAlliance Columnist, [url]www.aspalliance.com[/url]
    >
    > "DesignerX" <designerx2@yahoo.com> wrote in message
    > news:7KqcnZMQFcBJcYKiRTvUqw@giganews.com...
    > > I have a user control that contains a custom control, both are loaded
    > > dynamically.
    > >
    > > The custom control has a simple required field validator and a text box
    to
    > > validate.
    > >
    > > When the submit button in the user control is pressed the textbox does
    not
    > > seem to be validated.
    > >
    > > How do I even begin to troubleshoot this?
    > > My dynamically created controls are created in the load event.
    > >
    > >
    > > Thank you in advance for any help.
    > >
    > > stan
    > >
    > >
    >
    >

    Teemu Keiski Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139