how to insert fname,lname,designation values into database
while click on the submit button using windows
authentication mode?




how to insert fname,lname,designation values into database while click on the submit button using w..

Answer / Ram Prasad Chaurasiya

To perform this task using ADO.NET and Windows Authentication, follow these steps:
1. Import necessary namespaces (System.Data, System.Data.SqlClient).
2. Create a connection to your database with integrated security.
3. Define a SQL query to insert values into the table.
4. Create a SqlCommand object using your query and parameters for each value (fname, lname, designation).
5. Open the connection and execute the command.
6. Close the connection when you're done.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ADO.NET Code Interview Questions

Give me some tips in c#?

1 Answers  


How to connect c# visual studio 2008 to Oracle with ADO.NET? thanks for the answer.

1 Answers  


how to retrive file ,using file info on click event of a buton and disply it on a web form

1 Answers   Activa Softec,


In the Design view in Visual Studio 2005 of an ASP.NET web page, what is the easiest way to create an event handler for the default event of an ASP.NET server control?

1 Answers  


How to update and insert from datagridview at run time in excel database?

1 Answers  


how to insert fname,lname,designation values into database while click on the submit button using windows authentication mode?

1 Answers  


how to connect bind a control to database by writing a stored procedure?

3 Answers   Satyam,


How we work on N tire architecture in asp.net Please give me Examle...

4 Answers   ABC, HCL, IBM,


Categories
  • ASP.NET Code Interview Questions ASP.NET Code (46)
  • VB.NET Code Interview Questions VB.NET Code (9)
  • C Sharp Code Interview Questions C Sharp Code (51)
  • ADO.NET Code Interview Questions ADO.NET Code (8)