none
How to batch insert and update RRS feed

  • Question

  • Hi there,

    Whats the best control to insert and update data in asp.net , for example i was do that using datagridview winform application because i am just start using asp.net.

    Thanks


    Esmat

    • Moved by CoolDadTx Tuesday, April 2, 2019 1:50 PM ASP.NET related
    Tuesday, April 2, 2019 12:45 PM

All replies

  • Please post questions related to ASP.NET in the ASP.NET forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Tuesday, April 2, 2019 1:50 PM
  • Hello,

    See the following code sample for Entity Framework. If using SQL-Server w/o Entity Framework e.g. create a connection and command using the managed data provider SqlClient using containers such as a DataTable then look at using MERGE.

    A high level example for MERGE where cmd is a SqlClient.SqlClientCommand.


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Tuesday, April 2, 2019 1:50 PM