Raising an Event via Code

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

  1. #1

    Default Raising an Event via Code

    Our web application has a user control on a web page to
    display hierarchical data and allow the user to "drill-
    down" the hierarchy tree. The user control is a datalist,
    with an image button("+" or "-" sign like windows
    explorer), a checkbox and a label. Currently when the
    page first loads, the highest level (one item) is
    displayed (with a "+" image). The user has to click the
    plus sign to expand the hierarchy. The user would like
    for it to expand once by default, displaying the parent
    (with a "-" image) and the first generation of children
    (with "+" images) in the tree. I need to raise the
    datalist_ItemCommand and get the tree to expand when the
    page first loads. How should I raise this event?

    Thanks
    Dane
    Dane Dickey Guest

  2. Similar Questions and Discussions

    1. Raising a click event
      I created a custom control - inheriting from WebControl. How do I give this control a click event for the user of the control to put some code...
    2. raising Page event with customs webcontrol
      Hello, I'm trying to raise a Page level event from a custom webcontrol. I can get the event to fire but the context of the even is within the...
    3. Event raising question
      Hi, I have a question regarding events in a composite web control. In windows forms when I programmatically set the SelectedIndex property of a...
    4. dynamic linkbuttons event not raising - newbie
      Hi, I am creating a custom server control, and it dynamically creates lots of LinkButtons, and then I try to subscribe to the click event doing...
    5. raising event
      Assuming you have an event handler written for the "ontextchanged" event of the textbox, why don't you just call it directly? -- HTH, Kevin...
  3. #2

    Default Re: Raising an Event via Code

    Hi,

    use java script to simulate click on the image button.

    Natty Gur, CTO
    Dao2Com Ltd.
    28th Baruch Hirsch st. Bnei-Brak
    Israel , 51114

    Phone Numbers:
    Office: +972-(0)3-5786668
    Fax: +972-(0)3-5703475
    Mobile: +972-(0)58-888377

    Know the overall picture


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

  4. #3

    Default Re: Raising an Event via Code

    Hi,

    use java script to simulate click on the image button.

    Natty Gur, CTO
    Dao2Com Ltd.
    28th Baruch Hirsch st. Bnei-Brak
    Israel , 51114

    Phone Numbers:
    Office: +972-(0)3-5786668
    Fax: +972-(0)3-5703475
    Mobile: +972-(0)58-888377

    Know the overall picture


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur 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