Calling Method When Item Selected in Repeater

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

  1. #1

    Default Calling Method When Item Selected in Repeater

    I have a repeater that consists of a column of data. When the user selects
    an individual item, I need to execute a method in the codebehind that uses
    parameters passed upon item selection.

    Any ideas/suggestions on how to do this?

    Ron

    --
    _____________________________
    Ron Rodenberg
    Lead Software Engineer
    Razorvision Technology, Inc.
    (214) 207-1688


    Temp Guest

  2. Similar Questions and Discussions

    1. DataGrid item selected
      I tried : datagrid.selectedIndex = anyIndex and it does not work when is it possible to use this property ? is there some setIndex method...
    2. item selected cfselect with cfgrid
      If anyone's found a better way to make an item selected in a cfselect using cfgrid that the following, let me know: <cfgrid name="AddressGrid"...
    3. can't set the selected item of the dropdownlist
      I generate template columns in datagrid dynamic and I want dropdownlist in the EditItemTemplate, I did it But I can't set the selected item of...
    4. Client Script emitted from a Repeater Item Control
      I'm using a repeater to show the rows in a data table. I'd like the have a link button beside each row that removes the record, firing a client...
    5. Get the selected item from a listbox
      I'm having a hell of a time trying to determine which item is selected in a single-select listbox when the listbox autoposts. for some reason, the...
  3. #2

    Default Re: Calling Method When Item Selected in Repeater

    Ron hi,

    I assume the user select item by using checkbox / raiobutton. If this
    the case you can :

    Embed javascript that will catch the click event and call __dopostback
    with event name and event argument. The event name can be the checkbox
    name or a user define event that you need to create on your page. The
    argument can contain whatever you want. if you choose to implement your
    own event you need to check the __eventtarget form filed in the form
    OnInit methods. If its value meets custom control event name raise your
    events. Creating your own event let you set your own event parameter
    class

    Natty Gur, CTO
    Dao2Com Ltd.
    34th Elkalay st. Raanana
    Israel , 43000
    Phone Numbers:
    Office: +972-(0)9-7740261
    Fax: +972-(0)9-7740261
    Mobile: +972-(0)58-888377


    *** 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