AMB Posted March 12, 2012 Report Share Posted March 12, 2012 Boa tarde.... Alguem me consegue explicar com faço isto Protected Sub ImageButton11_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton11.Click ImageButton10.visible = True ImageButton11.Visible = False End Sub dentro de uma gridview... Criei os dois buttons no templatefield da gridview Obrigada Link to comment Share on other sites More sharing options...
Rechousa Posted March 13, 2012 Report Share Posted March 13, 2012 O que é que tens e o que é que queres fazer ao certo? tens 2 botões num templatefield da GridView e qdo clicas num, queres que o outro seja escondido, é isso? Na tua Gridview vais utilizar o evento OnRowCommand. Nesse teu evento, vais obter a row e, dentro da row, utilizas o findcontrol para obter os imagebutton. Os teus imagebutton deverão ter a propriedade CommandArgument definida 😉 Pedro Martins Sharing is Knowledge! http://www.linkedin.com/in/rechousa Link to comment Share on other sites More sharing options...
AMB Posted March 13, 2012 Author Report Share Posted March 13, 2012 o que pretendo é clicar num botão e esse mesmo botão desaparecer e aparecer outro e depois neste segundo botão realizar uma query a base dados. Link to comment Share on other sites More sharing options...
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