Drengor
August 17th, 2000, 12:18 PM
I'm having a bit of trouble getting the behavior I want with a button in a
repeat element.
I want each item in the repeat to have it's own button with the same
graphic and handler, with a value or name set to a unique ID (to know which
one to process).
IE.
<viewbutton> <delbutton> Doc 1
<viewbutton> <delbutton> Doc 2
<viewbutton> <delbutton> Doc 3
Clicking any of the 3 viewbuttons calls viewdochandler, the 3 viewbuttons
have an identifier to say which doc should be processed (In a value, or name
attribute).
The problem.
Using <button ....> results in the handler receiving an htmlbutton object
as the source, which prevents access to name, value, text, etc; but results
in a nice button with graphic on it.
Using <input type=image... > results in a nice button, but a
compiler error stating that the default handler type of public void
xxxxx(Object src, EventArgs E) is the wrong signature. I am unable to find
any indication of what signature is desired.
Using <input type=submit...> results in not getting an image on the
freaking button.
Steve
Drengor
repeat element.
I want each item in the repeat to have it's own button with the same
graphic and handler, with a value or name set to a unique ID (to know which
one to process).
IE.
<viewbutton> <delbutton> Doc 1
<viewbutton> <delbutton> Doc 2
<viewbutton> <delbutton> Doc 3
Clicking any of the 3 viewbuttons calls viewdochandler, the 3 viewbuttons
have an identifier to say which doc should be processed (In a value, or name
attribute).
The problem.
Using <button ....> results in the handler receiving an htmlbutton object
as the source, which prevents access to name, value, text, etc; but results
in a nice button with graphic on it.
Using <input type=image... > results in a nice button, but a
compiler error stating that the default handler type of public void
xxxxx(Object src, EventArgs E) is the wrong signature. I am unable to find
any indication of what signature is desired.
Using <input type=submit...> results in not getting an image on the
freaking button.
Steve
Drengor