Imagebutton to open link
Just click over the image button that you want as "url activator" , then go to the SOURCE and the code of the image button will be "highlighted", there put something like this using your info
Solo de click sobre el imagebutton que quieres como "activador de la URL" , luego vaya a SOURCE y en el codigo de la IMAGEBUTTON estará resaltado el codigo , ahi ponga algo asi usando su información:
<asp:ImageButton ID="ImageButton4" runat="server" Height="96px"
ImageUrl="~/img/libro.png" onclick="ImageButton4_Click"
onclientclick="javascript:window.open('http://etc');" Width="112px" />
From here the really important part is / De aquí lo realmente importante es
onclientclick="javascript:window.open('http://etc');"
Testes in/ Probado en: Visual Studio 2008, ASP, C#
Regards / Saludos
No hay comentarios:
Publicar un comentario