somebody 0 Posted October 18, 2017 Report Share Posted October 18, 2017 Boas, tenho uma imagem numa pagina que ao clicar quero que faça voltar á pagina inicial. Alguem pode dar uma ajudinha? Link to post Share on other sites
RicardoCosta 1 Posted March 12, 2018 Report Share Posted March 12, 2018 Boas, Tens de criar um elemento url a volta da imagem, por exemplo: <a href="url_da_home"><img src="localização_img" /></a> Cumps Link to post Share on other sites
999ANDRE999 3 Posted May 30, 2018 Report Share Posted May 30, 2018 Boas, no aspx da imagem colocas: <asp:ImageButton ID="ImageButton2" runat="server" Height="60px" ImageUrl="~/images/update-icon.png" onclick="ImageButton2_Click"/> E depois no código CS crias a função ImageButton2_Click onde redirecionas para a página home: protected void ImageButton2_Click(object sender, ImageClickEventArgs e) { Response.Redirect("~/home.aspx"); } Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now