Do FormViews not respond to commands issued from an ImageButton?
Posted
by Duke
on Stack Overflow
See other posts from Stack Overflow
or by Duke
Published on 2010-04-07T12:34:50Z
Indexed on
2010/04/07
12:43 UTC
Read the original article
Hit count: 390
I am using ImageButtons in place of LinkButtons in a FormView to issue New/Edit/Delete/Cancel commands, but they don't seem to have an effect on the FormView.
The ImageButtons will cause a postback but the FormView mode doesn't change from the current mode.
I'm sure the ImageButtons were working at one point, but I've been busy with other pages for a while. The only thing that's changed between now and then are some patches I installed in Visual Studio.
I haven't been able to find any information related to this issue other than this: http://www.codeproject.com/KB/webforms/TamingTheFormView.aspx In that article there's an onclick method for an ImageButton that's used to change the FormView mode.
Would that be the only way to use ImageButtons instead of LinkButtons in a FormView?
© Stack Overflow or respective owner