Fenetre popup .net

coulis Messages postés 121 Date d'inscription lundi 20 octobre 2003 Statut Membre Dernière intervention 24 juin 2010 - 10 mai 2005 à 18:37
coulis Messages postés 121 Date d'inscription lundi 20 octobre 2003 Statut Membre Dernière intervention 24 juin 2010 - 16 mai 2005 à 09:06
Bonjour,
Je souhaiterais ouvri une fenetre depusi ma page aspx. Voici mon code mais cela ne marche pas? Y-at-il une autre solution et eventuellement en code "behind" ?

Merci d'avance

' BorderColor="Black" BorderStyle="Solid" BorderWidth="1" Visible='<%# iif(Container.Dataitem("Image")=0, "False", "true")%>' OnClick='<%# "javascript:window.open('popup_photo.aspx?photo=" & DataBinder.Eval(Container.DataItem, "RefAnno").tostring & "','PHOTO','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,left=0,top=0');" %>'/>

Thierry
A voir également:

3 réponses

maximemonny Messages postés 11 Date d'inscription lundi 2 mai 2005 Statut Membre Dernière intervention 11 mai 2005
10 mai 2005 à 20:01
A première vue, ce ne serait pas un problème de guillemets
Je vois que ta propriété OnClick est encadrée de guillemets simples et tu réutilises ce même caractère dans ton javascript : 'popup_photo.aspx ...

maxime
0
Netlink Messages postés 139 Date d'inscription mercredi 2 avril 2003 Statut Membre Dernière intervention 12 juillet 2011
16 mai 2005 à 01:26
Peut-être comme ça ça marchera mieux ?

OnClick='javascript:window.open('popup_photo.aspx?photo=<%# DataBinder.Eval(Container.DataItem, "RefAnno").tostring %>','PHOTO','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,left=0,top=0');'/>

@ bientôt, Mathieu
0
coulis Messages postés 121 Date d'inscription lundi 20 octobre 2003 Statut Membre Dernière intervention 24 juin 2010
16 mai 2005 à 09:06
Merci à vous tous mais cela fonctionne maintenant j'ai mis une balise [# &image=<%#
DataBinder.Eval(Container.DataItem, "image").tostring%>', 'Photo')"
title="Voir la photo">]' BorderColor="Black"
BorderStyle="Solid" BorderWidth="1" Visible='<%#
iif(Container.Dataitem("Image")=0, "False", "true")%>'/>

Thierry
0
Rejoignez-nous