0

how i can trigger iteminserting event of asp.net Listview control of a row on pressing enter key after entering some values in the textbox in the same row.

2
  • Any effort so far? FAQ - How to Ask Feb 24, 2014 at 14:39
  • yes i used panel inside listview but it didn't work for me.and i used to register enter press key event of textbox in a row but i failed to register .so i can call it from javascript Feb 24, 2014 at 14:42

1 Answer 1

0

Well, it may be complicated. Any control that posts back sets the __EVENTTARGET and __EVENTARGUMENT params to determine what the control event was. You don't have to set those explicitly; you can use __doPostBack, which sets them. You have to use the UniqueID of the ListView for the target and whatever the listview expects for the argument (which can be a long concatenated string for some control types), something like:

__doPostBack("<%= list.UniqueID %>", "args");

The problem is what to supply to the args, and you would have to use RedGate Reflector or Telerik JustDecompile to do that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.