A
Al Cadalzo
I have a datagrid with some BoundColumns and several TemplateColumn's. Each
template column has a linkButton with the event handler specified via
OnCommand="ExternalLink_Command". The LinkButtons also have CommandName and
CommandArgument attributes set. Clicking on the linkbuttons causes a
postback, but the event handler is not executed. If I set the
EnableViewState on the datagrid to True, then it executes the event handler.
I do not want to have to set EnableViewState to True on the datagrid as it
slows the page down considerably. Oddly enough I have another datagrid on
the same page with a linkbutton and it executes the OnClick event handler
fine without having to set EnableViewState to "True".
Thanks for any help or suggestions you can offer.
Al
template column has a linkButton with the event handler specified via
OnCommand="ExternalLink_Command". The LinkButtons also have CommandName and
CommandArgument attributes set. Clicking on the linkbuttons causes a
postback, but the event handler is not executed. If I set the
EnableViewState on the datagrid to True, then it executes the event handler.
I do not want to have to set EnableViewState to True on the datagrid as it
slows the page down considerably. Oddly enough I have another datagrid on
the same page with a linkbutton and it executes the OnClick event handler
fine without having to set EnableViewState to "True".
Thanks for any help or suggestions you can offer.
Al