Bon alors ^^
Dans ma visualwebpart:
<asp:Button ID="btnModifier" runat="server" OnClick="" PostBackUrl="" ToolTip="Lien pour modifier la fiche client actuel" Width="80px" runat="server" Text="Modifier" style="background-image:url(http://srvintra/_layouts/images/edititem.gif); background-repeat:no-repeat;background-position:left;text-align:right;" />
Dans ma visualwebpart.cs j'aimerais faire quelque chose qui ressemble à ceci(avec l'id de ma liste et l'id de mon item en variable bien sur. La c'est juste pour tester et^être sur d'afficher un item.
//btnModifier.OnClick = "SP.UI.ModalDialog.showModalDialog({ url: \"http://srvintra/_layouts/listform.aspx?PageType=6&ListId={9903C9E4-BFD8-4A00-9D06-B5093A6F309F}&ID=9\",width: 600,height: 300,title: \"Cool\",})";
Le probléme c'est que je n'ai pas accés a ma variable Onclick mais uniquement OnClientClick. Ducou ma fenetre s'affiche et disparait aussitot ...
Une idée ?
Partager