Ajout événement clic sur user control ascx
Bonsoir à tous,
Je dispose d'un contrôle utilisateur que j'ai créé et qui est composé de plusieurs panel, de labels et d'une image :
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| <%@ Control Language="C#" AutoEventWireup="true" CodeFile="LienVisionneusePagePhoto.ascx.cs" Inherits="LienVisionneusePagePhoto" %>
<asp:Panel ID="PanelLienVisionneusePagePhotoConteneur" runat="server" CssClass="PresentationVisionneusePagePhoto">
<asp:Panel ID="PanelVignette" runat="server" CssClass="ImgPresentationVisionneusePagePhoto">
<asp:HyperLink ID="LienVersGalerie" runat="server" Height="100px" Target="_blank"
Width="100px" style="background-position: center center;">[LienVersGalerie]</asp:HyperLink></asp:Panel>
<asp:Panel ID="PanelTitre" runat="server" CssClass="TitrePresentationVisionneusePagePhoto">
<asp:Label ID="LabelTitre" runat="server"></asp:Label></asp:Panel>
<asp:Panel ID="PanelCommentaires" runat="server" CssClass="CommentairesPresentationVisionneusePagePhoto">
<asp:Label ID="LabelCommentaires" runat="server"></asp:Label></asp:Panel>
<asp:Panel ID="PanelNbPhotos" runat="server" CssClass="NbPhotosPresentationVisionneusePagePhoto">
<asp:Label ID="LabelNbPhotos" runat="server"></asp:Label></asp:Panel>
</asp:Panel> |
Je voudrais ajouter sur tout le contrôle un événement clic, afin de pouvoir ouvrir sur ce clic un autre navigateur avec un chemin spécifique (en fait un comportement de lien).
Je ne vois pas du tout comment faire... Des idées ?
Merci d'avance.
Nixar.