|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Problem with asp+ (Buttons with images and eventhandlers in repeat)
<i><b>Originally posted by : Steve (spetty@a2corp.com)</b></i><br /><br /> I'm having a bit of trouble getting the behavior I want with a button in a repeat element. <br /> 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).<br /><br /> IE.<br /><br /> <viewbutton> <delbutton> Doc 1<br /> <viewbutton> <delbutton> Doc 2<br /> <viewbutton> <delbutton> Doc 3<br /><br /> 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).<br /><br /> The problem.<br /> 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.<br /><br /> 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.<br /><br /> Using <input type=submit...> results in not getting an image on the freaking button.<br /><br />Steve
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : Steve</b></i><br /><br /> I've found I can get to these from the Attributes collection in HtmlControl. They just aren't preparsed and available as properties like they are for HtmlInputControl.<br /><br />------------<br />Steve at 8/17/2000 10:59:41 AM<br /><br /><br /> I'm having a bit of trouble getting the behavior I want with a button in a repeat element. <br /> 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).<br /><br /> IE.<br /><br /> <viewbutton> <delbutton> Doc 1<br /> <viewbutton> <delbutton> Doc 2<br /> <viewbutton> <delbutton> Doc 3<br /><br /> 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).<br /><br /> The problem.<br /> 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.<br /><br /> 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.<br /><br /> Using <input type=submit...> results in not getting an image on the freaking button.<br /><br />Steve
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > Problem with asp+ (Buttons with images and eventhandlers in repeat) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|