Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

How to use sql transaction and commit code in ASP.Net C#

$
0
0

Hi

i have a query in which i used SQL Begin transaction and commit transaction.

and i need to use this code in my asp.net web page.

here i am trying to delete record so i need to paas textbox value in this code.

here is my code-

BEGIN TransactionDELETE PersonFROM PersonINNERJOIN Account ON Person.cid=Account.cidWHERE Account.aid =1001DELETEFROM AccountWHERE Account.aid =1001COMMIT Transaction

how to use this code in ASP.net C# and to paas aid value from the textbox

i need to pass 101 from the textbox.

this particular action should be perform on button click.

Can someone Explain

Regards,

Jyotsna


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>