datalist showing blank row after selecting second item from same row

  • Thread starter Thread starter lucaslyana
  • Start date Start date
L

lucaslyana

I have a datalist with multiple controls in the itemtemplate which can
be selected. For example, a button can be clicked to vote on a topic,
and upon selection it increments by 1.

If I click on a second item from the same row in the datalist, such as
another vote button, or a hyperlink, the row disappears and shows as a
blank in the data list.

I traced the second click and found that the ItemCommand section is
never called for the second click.

If my second click is for an item in a different row, the control
behaves as expected.

Viewstate is enabled throughout.

Let me know if somebody has seen something like this. I can post my
code if it is helpful.

Thanks.
 
All,
I solved the issue below. In my itemtemplate, the button was using
"select" as its command name property. This was conflicting with a
keyword in .NET. Changing to a different command name solved the
problem. Just an FYI for anybody else who may try the same.
 
Back
Top