<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HELLO WORLD:</title>
<style type="text/css">
...
Saturday, May 31, 2014
Code To display data in grid view from Database
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DALBlueWhale.Entities;
using System.Data;
public partial class ManageEmployees : System.Web.UI.Page
{
Employee _employee;
DataTable...
Gridview Property In ASP.NET
<%@ Page Title="" Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true" CodeFile="ManageEmployees.aspx.cs" Inherits="ManageEmployees" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"...
Database Entities Classes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace DALBlueWhale.Entities
{
public class Employee
{
DBWrapper _db;
DataTable _tabl...
ASP.NET form to Add new Users
<%@ Page Title="BlueWhale | Add Employee" Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true" CodeFile="AddEmployee.aspx.cs" Inherits="AddEmployee"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2"...
DBWrapper Class In C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;
namespace DALBlueWhale
{
public class DBWrapper
{
ConnectionProvider _connProvider;
...
Connection to The Database sample code In C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Configuration;
namespace DALBlueWhale
{
public class ConnectionProvider
{
SqlConnection _connectio...
Code To Add New Users and Get Data fro drop down List
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using DALBlueWhale.Entities;
using System.Data.SqlClient;
using DALBlueWhale;
public partial class AddEmployee : System.Web.UI.Page
{
...
Configuration Setting For Form Authentication In web.config file In Asp.net
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<connectionStrings>
<add name="ConnStr" connectionString="Data...
LogIn Page Authentication In ASP.NET
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using DALBlueWhale.Entities;
using...