antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
Snooke

[ASP.NET] Inserir e Update no mesmo botão

2 posts in this topic

Boas a todos.
O objetivo é ao clicar no "Seleccionar" da gridview 
http://prntscr.com/dyin9q ele manda a informação para as textbox e ai eu poder editar a informação nas textbox e ao carregar no botão inserir/update ele dar Update e quando não selecciono nada ele inserir no mesmo botão.

O que acontece é estava a tentar fazer assim http://pastebin.com/hniYh8kU, mas ele não insere, mas se uma checkbox estiver activa ele vai dar update e vai inserir FACE_WITH_COLON_THREE.png:3

Podem-me dar uma ajudinha?
Estou a usar uma gridview e não posso utilizar o "Editar" gerado nela, tem de ser neste mesmo botão do inserir/update.

PS: Se não me tiver expressado bem digam pff

Obrigado,
Abraço

Share this post


Link to post
Share on other sites
antiblock
https://i.imgur.com/aJ17bf7.gif

up

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this