Saturday, April 28, 2012

Insert data to Database using SQL Command class in asp.net


 SqlCommand cmd;
cmd = new SqlCommand("insert into IEP  values('1',N'" + txtp1.Text + "')", con);
                cmd.ExecuteNonQuery();

No comments:

Using Authorization with Swagger in ASP.NET Core

 Create Solution like below LoginModel.cs using System.ComponentModel.DataAnnotations; namespace UsingAuthorizationWithSwagger.Models {     ...