Hi,
ruca wrote:
> Hi,
>
> Can anyone tell me please how can I return values from a popup to a
> UserControl. I use the same "method" like to return to a WebForm, but it not
> works in UserControl case.
Usually, when something works for a Page but not for a Control, it's an
ID problem. Be aware that when a control gets added to the page, all its
children controls get a different ID from the one set using the ID
attribute. This is to guarantee that all the IDs on the page are unique.
Inspect your produced HTML code using view-source. The control's unique
ID can be obtained on the server using myControl.ClientID.
> I have this code to return from popup to webform:
> ------------------------------------------------------------------------
> sbScript.Append("<script language='javascript'>")
Deprecated. Use
<script type="text/javascript">
instead.
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering:
http://www.galasoft-LB.ch
PhotoAlbum:
http://www.galasoft-LB.ch/pictures
Support children in Calcutta:
http://www.calcutta-espoir.ch