UserControl has no DataBound event?

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

  1. #1

    Default UserControl has no DataBound event?

    I have a UserControl that is used inside a datalist and I am databinding a
    could of the UserControl's properties to the data displayed in the datalist.
    My issue is I need to have some code run once all the properties are
    databound, but the UserControl class doesn't have the DataBound event.

    Does anyone know a way of doing this?

    --
    Chris Pietschmann
    [url]http://pietschsoft.com[/url]
    crpietschmann Guest

  2. Similar Questions and Discussions

    1. UserControl with databound repeater drops values on postback
      Hi all, I have a user control that contains a repeater that generates a list of check boxes. The checkboxes render fine, but they don't maintain...
    2. UserControl event & method call sequence
      I have an aspx page that loads an ascx user control. This is what happens: 1. As the aspx page loads it then loads the ascx usercontrol. 2....
    3. Event not firing in usercontrol inside usercontrol
      I'm stumped on this problem. I've created a user control that dynamically creates 5 linkbuttons in the CreateChildControls method. Each of these...
    4. usercontrol that raise a javascript event
      hi, is it possible to raise a javascript event when something happen on a user control field? i created a calendar user control which contains...
    5. UserControl click event won't fire
      I've got a custom usercontrol (UC1) that dynamically loads another custom usercontrols (UC2) during it's Init event. Both controls have...
  3. #2

    Default Re: UserControl has no DataBound event?

    It has DataBinding event which you could listen for or you can override
    DataBind() method in a class inheriting from UserControl and place the code
    after a call to MyBase.DataBind (or base.DataBind() in C#)

    --
    Teemu Keiski
    ASP.NET MVP, AspInsider
    Finland, EU
    [url]http://blogs.aspadvice.com/joteke[/url]

    "crpietschmann" <crpietschmann@discussions.microsoft.com> wrote in message
    news:5526A8D2-9A37-4C28-BD32-70F90625A482@microsoft.com...
    >I have a UserControl that is used inside a datalist and I am databinding a
    > could of the UserControl's properties to the data displayed in the
    > datalist.
    > My issue is I need to have some code run once all the properties are
    > databound, but the UserControl class doesn't have the DataBound event.
    >
    > Does anyone know a way of doing this?
    >
    > --
    > Chris Pietschmann
    > [url]http://pietschsoft.com[/url]

    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