Simple Data Entry Screen Or Insert Query in ASP.NET C# using MS Access

For those who are a Beginner in Dotnet, this is a Simple Data Entry Screen using an MS ACCESS Data Base, that is using an insert Query.



Add this line in the employee.aspx to use the master page.

<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.master" AutoEventWireup="true" CodeFile="EmployeeDet.aspx.cs" Inherits="AddEmp" %> 

Web config file - The Web.config is the main settings and configuration file for an ASP.NET web application. The web.config file contains information about the controls module loading, security configuration database connection strings, session configuration, application language and the compilation settings.

<?xml version="1.0"?>

<!--

AUTHENTICATION CODE C#_corner Contribution

-->

<configuration>

  <system.web>

    <authorization>

      <allow roles="rahul" />

    </authorization>

    <roleManager enabled="true" />

    <authentication mode="Forms" />

    <compilation debug="true" targetFramework="4.0" />

  </system.web>

  <connectionStrings>

    <add name="emplogin"

    <add name="HRMSConnectionString"

    connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data

Source=C:\HRMS\HRMS.mdb"

    providerName="System.Data.OleDb" />

  </connectionStrings>

</configuration>