How to create a built-in validation screen?

-1

I'm sorry if the title is not so explanatory, but the question is: I have to do a CRUD and I've already been able to do C and R, but I'm doing the Update now and the scheme looks something like this:

You have a Index page listing the objects that can be changed:

And what I would like is that when I clicked on one of the links, I would only display a modal with the fields that I can edit, and the edit link contains 2 fields with values checkbox ( true or false ) and the inactivation link is basically the execution of a query update in sql.

How could I do this?

Thank you, if you need more information, let me know!

    
asked by anonymous 03.10.2016 / 22:17

2 answers

0

Good you can recover by the url would look like this,

 <asp:TemplateField HeaderText="Editar">
   <ItemStyle Width="6%" />
   <HeaderTemplate>Editar
   </HeaderTemplate>
   <ItemTemplate>
       <asp:HyperLink runat="server" ID="HyperLink1" NavigateUrl='<%# String.Format("~/Pages/Editar.aspx?{0}", Eval("Id")) %>'Text="Editar"> </asp:HyperLink>
 </ItemTemplate>

and in your c # code from the edit page you can retrieve the id using Request.QueryString.ToString ()

    
04.10.2016 / 18:35
0

Using Bootstrap for data refresh, you can build your form with modal. Sending information can be done through Ajax using jQuery , for example. It is important to say that you have to treat the screen to display a failure message to the user when a fault occurs.

For inactivation, you can also use Ajax, displaying an appropriate message to the user on success or failure.

We have several examples here on the site on how to do this. Here I found a working example .

    
16.02.2017 / 18:10