"SE.Computerguy" <SE************@gmail.comschrieb im Newsbeitrag
news:11**********************@50g2000hsm.googlegro ups.com...
>I am trying to use the AJAX modal popup on a click event from a
gridview. Any ideas on implementing this? The AJAX control is looking
for a TargetControlID that will trigger the popup but the button field
in the grid does not have an ID.
Hi,
you can use an invisible button for the TargetControlID. Just place a button
on your form and set "display: none;" in the style of the button (or assign
a CSS class that hides it). After that you can call the "show()" method of
the modal popup from your event.
Note that you cannot use "Button.Visible = false" because that would not
render the button to the output HTML!
Ciao,
Ralf