how to insert fname,lname,designation values into database
while click on the submit button using windows
authentication mode?
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 |
Give me some tips in c#?
How to connect c# visual studio 2008 to Oracle with ADO.NET? thanks for the answer.
how to retrive file ,using file info on click event of a buton and disply it on a web form
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?
How to update and insert from datagridview at run time in excel database?
how to insert fname,lname,designation values into database while click on the submit button using windows authentication mode?
how to connect bind a control to database by writing a stored procedure?
How we work on N tire architecture in asp.net Please give me Examle...