Employee Attendance System module using ASP.NET (C#)

Size: px
Start display at page:

Download "Employee Attendance System module using ASP.NET (C#)"

Transcription

1 Employee Attendance System module using ASP.NET (C#) Home.aspx Page Language="C#" AutoEventWireup="true"CodeFile="home.aspx.cs" Inherits ="home" %> DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"" <html xmlns=" > <head runat="server"> <title>attendance Systemtitle> head> <body> <form id="form1" runat="server"> <div style="text-align:center;"> <div style="font-size:medium; color:blue; text-align:center;">today s Date : <%=strcurrntmonthyear %>div> <asp:gridview ID="gvCalander" Font-Size="Smaller" Font-Names="verdana, arial" HeaderStyle-HorizontalAlign="Center"RowStyle- HorizontalAlign="Center" RowStyle-BackColor="gray"AlternatingRowStyle- BackColor="Aqua" CellPadding="5" CellSpacing="5" runat="server" ShowHeader="f alse"autogeneratecolumns="false"onrowdatabound="gvcalander_rowdatabound"> <Columns> <asp:boundfield DataField="AutoID" HeaderText="Days" /> <asp:boundfield DataField="DaysName" HeaderText="Name" /> <asp:boundfield DataField="Date" HeaderText="Name" /> <asp:templatefield> <ItemTemplate> <asp:textbox ID="txtRemarks" runat="server" Text="Remarks"Font- Size="8" onfocus="if(this.value=='remarks')this.value=''"onblur="if(this.va lue=='')this.value='remarks'" >asp:textbox> ItemTemplate> asp:templatefield> <asp:templatefield> <ItemTemplate> <asp:checkbox ID="chkMark" runat="server" /> ItemTemplate> asp:templatefield> Columns> <RowStyle BackColor="Gray" HorizontalAlign="Center" /> <HeaderStyle HorizontalAlign="Center" /> <AlternatingRowStyle BackColor="Aqua" /> asp:gridview> div> <div style="text-align:center;"> <asp:button ID="btnAddAttendence" runat="server" Text="Add"OnClick="btnAd dattendence_click" /> <asp:button ID="btnReset"runat="server" Text="Reset" /> div> form> body> html> Home.aspx.cs Page using System;

2 using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Text; using System.Data.SqlClient; public partial class home : System.Web.UI.Page public static string strcurrntmonthyear = ""; SqlConnection dbcon = newsqlconnection(system.configuration.configurationmanager.appsettings["con nstring"].tostring()); int Year = 0; int inmonth = 0; protected void Page_Load(object sender, EventArgs e) if (!IsPostBack) bindattendance(); protected void bindattendance() //get current Year Year = DateTime.Now.Year; //get current Month inmonth = DateTime.Now.Month; //get Day's in current month int Days = DateTime.DaysInMonth(DateTime.Now.Year,DateTime.Now.Month); //Declare DataTable DataTable Dt = new DataTable("dtDays"); //Declare Data Column DataColumn auto = new DataColumn("AutoID",typeof(System.Int32)); Dt.Columns.Add(auto); DataColumn DaysName = new DataColumn("DaysName",typeof(string)); Dt.Columns.Add(DaysName); DataColumn Date = new DataColumn("Date", typeof(string)); Dt.Columns.Add(Date); //Declare Data Row DataRow dr = null; DateTime days; DateTime strdate;

3 for (int i = 1; i <= Days; i++) //Create row in DataTable dr = Dt.NewRow(); days = new DateTime(Year, inmonth, i); // find days name strdate = new DateTime(Year, inmonth, i); // find date w.r.t days dr["autoid"] = i; dr["daysname"] = days.dayofweek; dr["date"] = strdate.date.toshortdatestring(); Dt.Rows.Add(dr); //Add row in DataTable //Assign Current Date, Month and Year strcurrntmonthyear = DateTime.Now.ToString("dd") + " " +DateTime.Now.ToString("MMMM") + " " + Year; //Assing DataTable to GridView gvcalander.datasource = Dt; gvcalander.databind(); e) protected void gvcalander_rowdatabound(object sender,gridviewroweventargs string currdate = DateTime.Now.ToShortDateString(); if (e.row.rowtype == DataControlRowType.DataRow) string rowdate = e.row.cells[2].text; //Date string rowday = e.row.cells[1].text; //Day CheckBox chk = (CheckBox)e.Row.FindControl("chkMark"); TextBox txtremark = (TextBox)e.Row.FindControl("txtRemarks"); string strremarks = ""; bool boolattstatus = false; bindprevatt(out boolattstatus, out strremarks, rowdate); txtremark.text = strremarks; chk.checked = boolattstatus; if ((Convert.ToDateTime(rowDate) <Convert.ToDateTime(currDate)) chk.checked==true) // CheckBox chk = (CheckBox)e.Row.FindControl("chkMark"); // TextBox txtremark = (TextBox)e.Row.FindControl("txtRemarks"); chk.enabled = false; txtremark.enabled = false; if (rowday.equals("sunday") rowday.equals("saturday")) //if there is Sunday make it red colour e.row.cells[1].forecolor = System.Drawing.Color.Red;

4 protected void btnaddattendence_click(object sender,eventargs e) string strremarks = ""; string tscurrhour = DateTime.Now.Hour.ToString(); string tscurrmin = DateTime.Now.Minute.ToString(); foreach (GridViewRow gvr in gvcalander.rows) string strday = gvr.cells[1].text; //Day string strdate = gvr.cells[2].text; //Date TextBox txtremarks =(TextBox)gvr.FindControl("txtRemarks"); CheckBox chkmark = (CheckBox)gvr.FindControl("chkMark"); if (chkmark.checked == true) if (Convert.ToInt32(tsCurrHour) > 10 Convert.ToInt32(tsCurrMin) > 30) strremarks = "Sorry you are late"; else strremarks = txtremarks.text.trim(); //strremarks = txtremarks.text.trim(); //Save Data DateTime dt = Convert.ToDateTime(strDate); string strdatetime = dt.month+"/"+dt.day+"/"+dt.year; SaveData(1, strremarks, strdatetime); //bind Attendance bindattendance(); protected void SaveData(int attstatus, string strremarks,string strdate) //here I am assuming logged in employee Id as 1 string strqry = "INSERT INTO AttendanceMaster (empid, attmonth, attyear, attstatus, remarks, attdate, loggedindate ) VALUES (1," + DateTime.Now.Month + "," + DateTime.Now.Year + ","+ attstatus + ", '" + strremarks + "', '" + strdate +"',getdate())"; SqlCommand cmd = new SqlCommand(strQry, dbcon); dbcon.open(); cmd.executenonquery(); cmd.dispose(); dbcon.close(); protected void bindprevatt(out bool attstatus, out stringstrremarks, stri ng strattdate) attstatus = false; strremarks = "Remarks"; string strqry = "SELECT attstatus, remarks FROM AttendanceMaster WHERE empid = 1 AND Convert(varchar(12),attDate,103) = '" + strattdate + "'"; SqlCommand cmd = new SqlCommand(strQry, dbcon); dbcon.open();

5 SqlDataAdapter da = new SqlDataAdapter(cmd); DataTable dt = new DataTable(); da.fill(dt); if (dt.rows.count > 0) strremarks = dt.rows[0]["remarks"].tostring(); attstatus = Convert.ToBoolean(dt.Rows[0]["attStatus"]); dt.dispose(); da.dispose(); cmd.dispose(); dbcon.close(); Table Scripts /****** Object: Table [dbo].[attendancemaster] Script Date: 11/21/ :38:46 ******/ SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON SET ANSI_PADDING ON CREATE TABLE [dbo].[attendancemaster1]( [attid] [int] IDENTITY(1,1) NOT NULL, [empid] [int] NULL, [attmonth] [int] NULL, [attyear] [int] NULL, [attstatus] [bit] NULL, [remarks] [varchar](200) NULL, [attdate] [datetime] NULL, [loggedindate] [datetime] NULL ) ON [PRIMARY] SET ANSI_PADDING OFF ALTER TABLE [dbo].[attendancemaster] ADD DEFAULT ((0)) FOR[attStatus]

Insert Data into Table using C# Code

Insert Data into Table using C# Code Insert Data into Table using C# Code CREATE TABLE [registration]( [roll_no] [int] NULL, [name] [varchar](50), [class] [varchar](50), [sex] [varchar](50), [email] [varchar](50))

More information

ASP.NET Security. 7/26/2017 EC512 Prof. Skinner 1

ASP.NET Security. 7/26/2017 EC512 Prof. Skinner 1 ASP.NET Security 7/26/2017 EC512 Prof. Skinner 1 ASP.NET Security Architecture 7/26/2017 EC512 Prof. Skinner 2 Security Types IIS security Not ASP.NET specific Requires Windows accounts (NTFS file system)

More information

Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

Page Language=C# AutoEventWireup=true CodeFile=Default.aspx.cs Inherits=_Default %> در این مقاله قصد داریم با استفاده از Ajax کاربر یک پیام را بدون الگین شدن و با استفاده از IP بتواند الیک و یا دیس الیک کند را در ASPآموزش دهیم. برای شروع یک بانک اطالعاتی به نام Test که حاوی دو جدول به

More information

Encrypt and Decrypt Username or Password stored in database in ASP.Net using C# and VB.Net

Encrypt and Decrypt Username or Password stored in database in ASP.Net using C# and VB.Net Encrypt and Decrypt Username or Password stored in database in ASP.Net using C# and VB.Net Here Mudassar Ahmed Khan has explained how to encrypt and store Username or Password in SQL Server Database Table

More information

BİLGİLERİN GRIDVIEW İÇERİSİNDE EKLENMESİ, DÜZENLENMESİ VE SİLİNMESİ

BİLGİLERİN GRIDVIEW İÇERİSİNDE EKLENMESİ, DÜZENLENMESİ VE SİLİNMESİ BİLGİLERİN GRIDVIEW İÇERİSİNDE EKLENMESİ, DÜZENLENMESİ VE SİLİNMESİ default.aspx

More information

In the previous chapter we created a web site with images programmed into HTML page code using commands such as: <img src="images/train.

In the previous chapter we created a web site with images programmed into HTML page code using commands such as: <img src=images/train. Chapter 6: Mountain Bike Club 113 6 Mountain Bike Club In the previous chapter we created a web site with images programmed into HTML page code using commands such as: In

More information

ASP.NET Pearson Education, Inc. All rights reserved.

ASP.NET Pearson Education, Inc. All rights reserved. 1 ASP.NET 2 Rule One: Our client is always right. Rule Two: If you think our client is wrong, see Rule One. Anonymous 3 25.1 Introduction ASP.NET 2.0 and Web Forms and Controls Web application development

More information

C# winforms gridview

C# winforms gridview C# winforms gridview using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

More information

How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample.

How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample. How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample. Author: Carlos Kassab Date: July/24/2006 First install BOBS(BaaN Ole Broker Server), you

More information

MOSS2007 Write your own custom authentication provider (Part 4)

MOSS2007 Write your own custom authentication provider (Part 4) MOSS2007 Write your own custom authentication provider (Part 4) So in the last few posts we have created a member and role provider and configured MOSS2007 to use this for authentication. Now we will create

More information

XML with.net: Introduction

XML with.net: Introduction XML with.net: Introduction Extensible Markup Language (XML) strores and transports data. If we use a XML file to store the data then we can do operations with the XML file directly without using the database.

More information

Pentatonic Labs Final Documentation

Pentatonic Labs Final Documentation Pentatonic Labs Final Documentation Chelsea Reynolds, Eric Stirling, Tayler Albert, Kyle White, Tam Huynh 1 Table of Contents Site Hierarchy......3 Home.....4 Home Display............4 Default.aspx.cs......4

More information

ASP.NET - MULTI THREADING

ASP.NET - MULTI THREADING ASP.NET - MULTI THREADING http://www.tutorialspoint.com/asp.net/asp.net_multi_threading.htm Copyright tutorialspoint.com A thread is defined as the execution path of a program. Each thread defines a unique

More information

3 Customer records. Chapter 3: Customer records 57

3 Customer records. Chapter 3: Customer records 57 Chapter 3: Customer records 57 3 Customer records In this program we will investigate how records in a database can be displayed on a web page, and how new records can be entered on a web page and uploaded

More information

8 Library loan system

8 Library loan system Chapter 8: Library loan system 153 8 Library loan system In previous programs in this book, we have taken a traditional procedural approach in transferring data directly between web pages and the ASP database.

More information

Final Documentation. Created By: Ahnaf Salam Adam Castillo Sergio Montejano Elliot Galanter

Final Documentation. Created By: Ahnaf Salam Adam Castillo Sergio Montejano Elliot Galanter Final Documentation Created By: Ahnaf Salam Adam Castillo Sergio Montejano Elliot Galanter Table of Contents SITE HIERARCHY: 5 WEB.CONFIG CODE: 6 LOGIN CREDENTIALS 6 HOME PAGE: 7 Purpose: 7 Design: 7 Data

More information

ASP.NET - MANAGING STATE

ASP.NET - MANAGING STATE ASP.NET - MANAGING STATE http://www.tutorialspoint.com/asp.net/asp.net_managing_state.htm Copyright tutorialspoint.com Hyper Text Transfer Protocol HTTP is a stateless protocol. When the client disconnects

More information

Web based of electronic document management systems

Web based of electronic document management systems Invention Journal of Research Technology in Engineering & Management (IJRTEM) ISSN: 2455-3689 www.ijrtem.com ǁ Volume 1 ǁ Issue 7 ǁ Web based of electronic document management systems Viliam Malcher 1,

More information

Web Forms User Security and Administration

Web Forms User Security and Administration Chapter 7 Web Forms User Security and Administration In this chapter: Administering an ASP.NET 2.0 Site...................................... 238 Provider Configuration................................................

More information

ACTIVE SERVER PAGES.NET 344 Module 5 Programming web applications with ASP.NET Writing HTML pages and forms Maintaining consistency with master pages Designing pages with ASP.NET controls Styling sites

More information

ASP.net. Microsoft. Getting Started with. protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable();

ASP.net. Microsoft. Getting Started with. protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable(); Getting Started with protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable(); string connectionstring = System.Configuration.ConfigurationManager.ConnectionStrings ["default"].connectionstring;!

More information

3-tier Architecture Step by step Exercises Hans-Petter Halvorsen

3-tier Architecture Step by step Exercises Hans-Petter Halvorsen https://www.halvorsen.blog 3-tier Architecture Step by step Exercises Hans-Petter Halvorsen Software Architecture 3-Tier: A way to structure your code into logical parts. Different devices or software

More information

dnrtv! featuring Peter Blum

dnrtv! featuring Peter Blum dnrtv! featuring Peter Blum Overview Hello, I am Peter Blum. My expertise is in how users try to use web controls for data entry and what challenges they face. Being a developer of third party controls,

More information

Chapter 2 How to develop a one-page web application

Chapter 2 How to develop a one-page web application Chapter 2 How to develop a one-page web application Murach's ASP.NET 4.5/C#, C2 2013, Mike Murach & Associates, Inc. Slide 1 The aspx for a RequiredFieldValidator control

More information

Working with Data in ASP.NET 2.0 :: Wrapping Database Modifications within a Transaction Introduction

Working with Data in ASP.NET 2.0 :: Wrapping Database Modifications within a Transaction Introduction 1 of 19 This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx.

More information

Web Programming Paper Solution (Chapter wise)

Web Programming Paper Solution (Chapter wise) .Net.net code to insert new record in database using C#. Database name: College.accdb Table name: students Table structure: std_id number std_name text std_age number Table content (before insert): 2 abcd

More information

Working with Data in ASP.NET 2.0 :: Custom Formatting Based Upon Data Introduction

Working with Data in ASP.NET 2.0 :: Custom Formatting Based Upon Data Introduction This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx. Working

More information

Foreign-Key Associations

Foreign-Key Associations Search ASP.NET Sign In Join Home Get Started Downloads Web Pages Web Forms MVC Community Forums Overview Videos Samples Forum Books Open Source Home / Web Forms / Tutorials / Chapter 3. Continuing with

More information

Mainly three tables namely Teacher, Student and Class for small database of a school. are used. The snapshots of all three tables are shown below.

Mainly three tables namely Teacher, Student and Class for small database of a school. are used. The snapshots of all three tables are shown below. APPENDIX 1 TABLE DETAILS Mainly three tables namely Teacher, Student and Class for small database of a school are used. The snapshots of all three tables are shown below. Details of Class table are shown

More information

Processing Web Form Output. This chapter deals with information returned by the

Processing Web Form Output. This chapter deals with information returned by the 5001_Ch08 07/12/01 2.29 pm Page 269 C H A P T E R 8 Processing Web Form Output This chapter deals with information returned by the application or computer to various Web Form controls. This information

More information

Final Documentation Solutions Inc TEAM SOLUTION Micheal Scott Trevor Moore Aurian James Wes Bailoni

Final Documentation Solutions Inc TEAM SOLUTION Micheal Scott Trevor Moore Aurian James Wes Bailoni Final Documentation Solutions Inc. 12.5.2017 TEAM SOLUTION Micheal Scott Trevor Moore Aurian James Wes Bailoni 1 P a g e Table of Contents SITE HIERARCHY... 3 Email/Password... 4 Information... 5 Web.config...

More information

What is ASP.NET? ASP.NET 2.0

What is ASP.NET? ASP.NET 2.0 What is ASP.NET? ASP.NET 2.0 is the current version of ASP.NET, Microsoft s powerful technology for creating dynamic Web content. is one of the key technologies of Microsoft's.NET Framework (which is both

More information

UNIT-3. Prepared by R.VINODINI 1

UNIT-3. Prepared by R.VINODINI 1 Prepared by R.VINODINI 1 Prepared by R.VINODINI 2 Prepared by R.VINODINI 3 Prepared by R.VINODINI 4 Prepared by R.VINODINI 5 o o o o Prepared by R.VINODINI 6 Prepared by R.VINODINI 7 Prepared by R.VINODINI

More information

How to get Intellisense with AVR in your Web app s global.asax

How to get Intellisense with AVR in your Web app s global.asax This document applies to: AVR for.net, all versions Document revision V1.0 Document date 5 August 2011 Category AVR IDE Abstract Global.asax doesn t play along well with Intellisense. This article shows

More information

STEP 1: CREATING THE DATABASE

STEP 1: CREATING THE DATABASE Date: 18/02/2013 Procedure: Creating a simple registration form in ASP.NET (Programming) Source: LINK Permalink: LINK Created by: HeelpBook Staff Document Version: 1.0 CREATING A SIMPLE REGISTRATION FORM

More information

Dr.Qadri Hamarsheh. Overview of ASP.NET. Advanced Programming Language (630501) Fall 2011/2012 Lectures Notes # 17. Data Binding.

Dr.Qadri Hamarsheh. Overview of ASP.NET. Advanced Programming Language (630501) Fall 2011/2012 Lectures Notes # 17. Data Binding. Advanced Programming Language (630501) Fall 2011/2012 Lectures Notes # 17 Data Binding Outline of the Lecture Code- Behind Handling Events Data Binding (Using Custom Class and ArrayList class) Code-Behind

More information

Working with Data in ASP.NET 2.0 :: Displaying Binary Data in the Data Web Controls Introduction

Working with Data in ASP.NET 2.0 :: Displaying Binary Data in the Data Web Controls Introduction 1 of 17 This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx.

More information

Accessing Databases 7/6/2017 EC512 1

Accessing Databases 7/6/2017 EC512 1 Accessing Databases 7/6/2017 EC512 1 Types Available Visual Studio 2017 does not ship with SQL Server Express. You can download and install the latest version. You can also use an Access database by installing

More information

Caso de Estudio: Parte II. Diseño e implementación de. Integración de Sistemas. aplicaciones Web con.net

Caso de Estudio: Parte II. Diseño e implementación de. Integración de Sistemas. aplicaciones Web con.net Caso de Estudio: Diseño e Implementación de la Capa Web de MiniBank Integración de Sistemas Parte II Diseño e implementación de Parte II. Diseño e implementación de aplicaciones Web con.net Introducción

More information

LIPNET OUTBOUND API FORMS DOCUMENTATION

LIPNET OUTBOUND API FORMS DOCUMENTATION LIPNET OUTBOUND API FORMS DOCUMENTATION LEGAL INAKE PROFESSIONALS 2018-03-0926 Contents Description... 2 Requirements:... 2 General Information:... 2 Request/Response Information:... 2 Service Endpoints...

More information

Displaying Views of Data (Part II)

Displaying Views of Data (Part II) Displaying Views of Data (Part II) In Chapter 6, we discussed how we can work with the GridView control in ASP. NET. This is the last part in the series of two chapters on how we can use the view controls

More information

Introduction & Controls. M.Madadyar.

Introduction & Controls. M.Madadyar. Introduction & Controls M.Madadyar. htt://www.students.madadyar.com ASP.NET Runtime Comilation and Execution default.asx Which language? C# Visual Basic.NET C# comiler Visual Basic.NET comiler JIT comiler

More information

Sequence and ASP.NET Applications

Sequence and ASP.NET Applications PNMsoft Knowledge Base Sequence Best Practices Sequence and ASP.NET Applications Decmeber 2013 Product Version 7.x 2013 PNMsoft All Rights Reserved This document, including any supporting materials, is

More information

م ار ن ارم... ا ل. وفدم و Sandbox.PayPal وھورةن ور لPal Payود طوريا وا. دا &% ر-) طوات ط) وھ : - ( )

م ار ن ارم... ا ل. وفدم و Sandbox.PayPal وھورةن ور لPal Payود طوريا وا. دا &% ر-) طوات ط) وھ : - (   ) م ار ن ارم...... ASP.NetPayPal ا ل وفدم و Sandbox.PayPal وھورةن ور لPal Payود طوريا وا رب 'ر*مذاتا,تار)لط+*(ورة &)و'رھ&% ا$رتواب ذكب ) ا,تار)ا &+) $ والو+&* نبا%بار. دا &% ر-) طوات ط) وھ : - ( https://developer.paypal.com/

More information

Developing User Controls in EPiServer

Developing User Controls in EPiServer Developing User Controls in EPiServer Abstract It is recommended that developers building Web sites based on EPiServer create their own user controls with links to base classes in EPiServer. This white

More information

Chapter 13: An Example Web Service Client

Chapter 13: An Example Web Service Client page 1 Chapter 13: An Example Web Service Client In this chapter, we are going to build a client web application that uses a free web service called Terraserver. Terraserver is a site run by Microsoft

More information

GSU Alumni Portal. OPUS Open Portal to University Scholarship. Governors State University. Vemuri Vinusha Chowdary Governors State University

GSU Alumni Portal. OPUS Open Portal to University Scholarship. Governors State University. Vemuri Vinusha Chowdary Governors State University Governors State University OPUS Open Portal to University Scholarship All Capstone Projects Student Capstone Projects Fall 2015 GSU Alumni Portal Vemuri Vinusha Chowdary Governors State University Sairam

More information

Câu 1: (2 điểm) So sách giữa 2 đối tượng Response và Request. Cho ví dụ minh hoạ.

Câu 1: (2 điểm) So sách giữa 2 đối tượng Response và Request. Cho ví dụ minh hoạ. BỘ CÔNG THƯƠNG TRƯỜNG CĐ KỸ THUẬT CAO THẮNG ------------------------------------- ĐỀ 1 ĐỀ THI HỌC KỲ PHỤ - NĂM HỌC 2009-2010 MÔN : LẬP TRÌNH ỨNG DỤNG WEB 1 LỚP: CDTH07 Thời gian làm bài: 90 phút, không

More information

Blackbird Books and Supplies

Blackbird Books and Supplies Blackbird Books and Supplies Final Documentation Team Blackbird Mike Pratt Ridha Joudah Jayati Dandriyal Joseph Manga 1 Contents Site Hierarchy... 3 Home (Default Page)... 4 About... 6 Contact... 8 Login...

More information

Datalogging and Monitoring

Datalogging and Monitoring Datalogging and Monitoring with Step by Step Examples Hans-Petter Halvorsen http://www.halvorsen.blog Content Different Apps for Data Logging and Data Monitoring will be presented Here you find lots of

More information

Web Forms ASP.NET. 2/12/2018 EC512 - Prof. Skinner 1

Web Forms ASP.NET. 2/12/2018 EC512 - Prof. Skinner 1 Web Forms ASP.NET 2/12/2018 EC512 - Prof. Skinner 1 Active Server Pages (.asp) Used before ASP.NET and may still be in use. Merges the HTML with scripting on the server. Easier than CGI. Performance is

More information

Programming Microsoft Dynamics CRM 4.0 Sample Chapter: Developing Offline Solutions

Programming Microsoft Dynamics CRM 4.0 Sample Chapter: Developing Offline Solutions Programming Microsoft Dynamics CRM 4.0 Sample Chapter: Developing Offline Solutions This sample chapter is from the book Programming Microsoft Dynamics CRM 4.0 co-authored by Jim Steger, Mike Snyder, Brad

More information

Exception/Error Handling in ASP.Net

Exception/Error Handling in ASP.Net Exception/Error Handling in ASP.Net Introduction Guys, this is not first time when something is written for exceptions and error handling in the web. There are enormous articles written earlier for this

More information

Postback. ASP.NET Event Model 55

Postback. ASP.NET Event Model 55 ASP.NET Event Model 55 Because event handling requires a round-trip to the server, ASP.NET offers a smaller set of events in comparison to a totally client-based event system. Events that occur very frequently,

More information

Week Date Teaching Attended 8 1/3/2010 Lab 6: Secure Connections/ Toolkit 6

Week Date Teaching Attended 8 1/3/2010 Lab 6: Secure Connections/ Toolkit 6 Week Date Teaching Attended 8 1/3/2010 Lab 6: Secure Connections/ Toolkit 6 Aim: The aim of this lab is to investigate the integration of SAML into Web Authentication. Time to complete: 4 hours (Two supervised

More information

14 Chapter PERSONALIZATION WITH

14 Chapter PERSONALIZATION WITH 14 Chapter PERSONALIZATION WITH PROFILES AND WEB PARTS Web applications often need to track user information over time. Sometimes, this information is mission critical, such as customer orders, shipping

More information

SHRIMATI INDIRA GANDHI COLLEGE

SHRIMATI INDIRA GANDHI COLLEGE SHRIMATI INDIRA GANDHI COLLEGE (Nationally Accredited at A Grade (3rd Cycle) By NAAC) Tiruchirappalli 2. INSTRUCTION MATERIAL 2017-2018 DEPARTMENT OF COMPUTER APPLICATION 1 CONTENT S.NO SUBJECT CODE PAGE.NO

More information

CST272 Getting Started Page 1

CST272 Getting Started Page 1 CST272 Getting Started Page 1 1 2 3 4 5 6 8 Introduction to ASP.NET, Visual Studio and C# CST272 ASP.NET Static and Dynamic Web Applications Static Web pages Created with HTML controls renders exactly

More information

CST272 GridView Page 1

CST272 GridView Page 1 CST272 GridView Page 1 1 2 3 5 6 7 GridView CST272 ASP.NET The ASP:GridView Web Control (Page 1) Automatically binds to and displays data from a data source control in tabular view (rows and columns) To

More information

CST272 Getting Started Page 1

CST272 Getting Started Page 1 CST272 Getting Started Page 1 1 2 3 5 6 8 10 Introduction to ASP.NET and C# CST272 ASP.NET ASP.NET Server Controls (Page 1) Server controls can be Buttons, TextBoxes, etc. In the source code, ASP.NET controls

More information

Teacher s Reference Manual

Teacher s Reference Manual UNIVERSITY OF MUMBAI Teacher s Reference Manual Subject: Advanced Web Programming with effect from the academic year 2018 2019 Practical 3(b).Demonstrate the use of Calendar control to perform following

More information

create database ABCD use ABCD create table bolumler ( bolumkodu int primary key, bolumadi varchar(20) )

create database ABCD use ABCD create table bolumler ( bolumkodu int primary key, bolumadi varchar(20) ) create database ABCD use ABCD create table bolumler ( bolumkodu int primary key, bolumadi varchar(20) ) insert into bolumler values(1,'elektrik') insert into bolumler values(2,'makina') insert into bolumler

More information

CP3343 Computer Science Project (Year) Technical Report Document. Mr Stephen Garner

CP3343 Computer Science Project (Year) Technical Report Document. Mr Stephen Garner CP3343 Computer Science Project (Year) Technical Report Document Mr Stephen Garner Colin Hopson 0482647 Wednesday 23 rd April 2008 i Contents 1 Introduction... 1 2 The Program Listing... 1 2.1 ASP.Net

More information

Practical No 1. Output. Write a program in c# to print "HELLO" using System; using System.Collections.Generic; using System.Linq;

Practical No 1. Output. Write a program in c# to print HELLO using System; using System.Collections.Generic; using System.Linq; Practical No 1 Write a program in c# to print "HELLO" using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace hello class Program static void Main(string[] args)

More information

Working with Data in ASP.NET 2.0 :: Batch Updating Introduction

Working with Data in ASP.NET 2.0 :: Batch Updating Introduction 1 of 22 This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx.

More information

The true beginning of our end. William Shakespeare, A Midsummer Night s Dream

The true beginning of our end. William Shakespeare, A Midsummer Night s Dream 1 Chapter INTRODUCING ASP.NET 2.0 The true beginning of our end. William Shakespeare, A Midsummer Night s Dream The end goal of this book is to teach and guide the reader through the increasingly large

More information

Working with Data in ASP.NET 2.0 :: Adding a GridView Column of Checkboxes Introduction

Working with Data in ASP.NET 2.0 :: Adding a GridView Column of Checkboxes Introduction 1 of 12 This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx.

More information

Ahmed, Obaid; Gangula, Muthyalamma; and Margam, Rakesh, "E-Exam Engine" (2015). All Capstone Projects

Ahmed, Obaid; Gangula, Muthyalamma; and Margam, Rakesh, E-Exam Engine (2015). All Capstone Projects Governors State University OPUS Open Portal to University Scholarship All Capstone Projects Student Capstone Projects Spring 2015 E-Exam Engine Obaid Ahmed Governors State University Muthyalamma Gangula

More information

PLATFORM TECHNOLOGY UNIT-4

PLATFORM TECHNOLOGY UNIT-4 VB.NET: Handling Exceptions Delegates and Events - Accessing Data ADO.NET Object Model-.NET Data Providers Direct Access to Data Accessing Data with Datasets. ADO.NET Object Model ADO.NET object model

More information

Updated: Saturday, November 29, 2014 Page 1

Updated: Saturday, November 29, 2014 Page 1 ' Copyright 2013 Safe T Services - All Rights Reserved '=========================================================================================== 'Changed by Change Date Change Tag ' Description of Change

More information

CHAPTER 1 INTRODUCING ADO.NET

CHAPTER 1 INTRODUCING ADO.NET CHAPTER 1 INTRODUCING ADO.NET I. Overview As more and more companies are coming up with n-tier client/server and Web-based database solutions, Microsoft with its Universal Data Access (UDA) model, offers

More information

private string sconnection = ConfigurationManager.ConnectionStrings["Development"].ConnectionString

private string sconnection = ConfigurationManager.ConnectionStrings[Development].ConnectionString using System; using System.Configuration; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Text; using System.Windows.Forms;

More information

Review of Business Information Systems First Quarter 2009 Volume 13, Number 1

Review of Business Information Systems First Quarter 2009 Volume 13, Number 1 CRUD On The Web Pedagogical Modules For Web-Based Data Access Kelly Fadel, Utah State University, USA David Olsen, Utah State University, USA Karina Hauser, Utah State University, USA ABSTRACT The growing

More information

PRACTICALES:- Navigation control

PRACTICALES:- Navigation control PRACTICALES:- Navigation control Navigation controls are use to shift control from one page to another. ASP.NET has three new navigation controls: Dynamic menus:- The control displays a standard

More information

private string sconnection = ConfigurationManager.ConnectionStrings["Development"].ConnectionString

private string sconnection = ConfigurationManager.ConnectionStrings[Development].ConnectionString using System; using System.Configuration; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Text; using System.Windows.Forms;

More information

Visual Basic/C# Programming (330)

Visual Basic/C# Programming (330) Page 1 of 12 Visual Basic/C# Programming (330) REGIONAL 2017 Production Portion: Program 1: Calendar Analysis (400 points) TOTAL POINTS (400 points) Judge/Graders: Please double check and verify all scores

More information

Generation of a simple web-application in the Microsoft Visual Studio 2008 with the use of Silverlight Viewer for Reporting Services 2008

Generation of a simple web-application in the Microsoft Visual Studio 2008 with the use of Silverlight Viewer for Reporting Services 2008 Generation of a simple web-application in the Microsoft Visual Studio 2008 with the use of Silverlight Viewer for Reporting Services 2008 Prerequisites.NET Framework 3.5 SP1/4.0 Silverlight v3 Silverlight

More information

Live TV Station Broadcasting by Utilizing Windows. Server2008 (Windows Media Service) and Video. Advertisement Management by Utilizing Server-side

Live TV Station Broadcasting by Utilizing Windows. Server2008 (Windows Media Service) and Video. Advertisement Management by Utilizing Server-side Live TV Station Broadcasting by Utilizing Windows Server2008 (Windows Media Service) and Video Advertisement Management by Utilizing Server-side Playlist programming Ding Luo STD#: 728355 Dec. 2008 Abstract

More information

Computer Science E-1. Understanding Computers and the Internet. Lecture 10: Website Development Wednesday, 29 November 2006

Computer Science E-1. Understanding Computers and the Internet. Lecture 10: Website Development Wednesday, 29 November 2006 Computer Science E-1 Understanding Computers and the Internet Lecture 10: Website Development Wednesday, 29 November 2006 David J. Malan malan@post.harvard.edu 1 Agenda Webservers Structure Permissions

More information

DevEdit v4.0 Setup Guide (ASP.Net)

DevEdit v4.0 Setup Guide (ASP.Net) DevEdit v4.0 Setup Guide (ASP.Net) http://www.devedit.com Table of Contents Table of Contents...1 Legal Disclaimer...2 Getting Started...3 Web Server Requirements...3 Uploading the Files...3 Setting up

More information

Lab 5: ASP.NET 2.0 Profiles and Localization

Lab 5: ASP.NET 2.0 Profiles and Localization Lab 5: ASP.NET 2.0 Profiles and Localization Personalizing content for individual users and persisting per-user data has always been a non-trivial undertaking in Web apps, in part due to the stateless

More information

Creating the Product Catalog: Part II

Creating the Product Catalog: Part II Creating the Product Catalog: Part II Instructor: Wei Ding The lecture notes are written based on the book Beginning ASP.NET 2.0 E-Commerce in C# 2005 From Novice to Profession by Cristian Darie and Karli

More information

This PDF was generated in real-time using DynamicPDF; Generator for.net.

This PDF was generated in real-time using DynamicPDF; Generator for.net. MailingLabels.aspx 1 1 using System; 2 using System.Data; 3 using System.Data.SqlClient;

More information

Copy Datatable Schema To Another Datatable Vb.net

Copy Datatable Schema To Another Datatable Vb.net Copy Datatable Schema To Another Datatable Vb.net NET Framework 4.6 and 4.5 The schema of the cloned DataTable is built from the columns of the first enumerated DataRow object in the source table The RowState

More information

if (say==0) { k.commandtext = "Insert into kullanici(k_adi,sifre) values('" + textbox3.text + "','" + textbox4.text + "')"; k.

if (say==0) { k.commandtext = Insert into kullanici(k_adi,sifre) values(' + textbox3.text + ',' + textbox4.text + '); k. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient;

More information

Web Services DELMIA Apriso 2017 Implementation Guide

Web Services DELMIA Apriso 2017 Implementation Guide Web Services DELMIA Apriso 2017 Implementation Guide 2016 Dassault Systèmes. Apriso, 3DEXPERIENCE, the Compass logo and the 3DS logo, CATIA, SOLIDWORKS, ENOVIA, DELMIA, SIMULIA, GEOVIA, EXALEAD, 3D VIA,

More information

Activating AspxCodeGen 4.0

Activating AspxCodeGen 4.0 Activating AspxCodeGen 4.0 The first time you open AspxCodeGen 4 Professional Plus edition you will be presented with an activation form as shown in Figure 1. You will not be shown the activation form

More information

Web Applications With Java Server Pages and Microsoft.NET Web Forms

Web Applications With Java Server Pages and Microsoft.NET Web Forms Web Applications With Java Server Pages and Microsoft.NET Web Forms Ryan Tillotson Abstract As the web continues to develop, web applications will become more prominent. Because of this, it is important

More information

For this example, we will set up a small program to display a picture menu for a fast food take-away shop.

For this example, we will set up a small program to display a picture menu for a fast food take-away shop. 146 Programming with C#.NET 9 Fast Food This program introduces the technique for uploading picture images to a C# program and storing them in a database table, in a similar way to text or numeric data.

More information

Creating the Product Catalog: Part II

Creating the Product Catalog: Part II A Database-Backed Web Site Creating the Product Catalog: Part II Instructor: Wei Ding The lecture notes are written based on the book Beginning ASP.NET 20EC 2.0 E-Commerce in C# 2005 From Novice to Profession

More information

Webnodes Developers Manual

Webnodes Developers Manual Webnodes Webnodes Developers Manual Framework programming manual Administrator 1/1/2010 Webnodes Developers manual Webnodes Overview... 5 Definitions and meanings of words... 5 Introduction... 5 Key components...

More information

WebSharpCompiler. Building a web based C# compiler using ASP.NET and TDD. Author: Dominic Millar Tech Review:Matt Rumble Editor:Cathy Tippett Feb 2011

WebSharpCompiler. Building a web based C# compiler using ASP.NET and TDD. Author: Dominic Millar Tech Review:Matt Rumble Editor:Cathy Tippett Feb 2011 WebSharpCompiler Building a web based C# compiler using ASP.NET and TDD Author: Dominic Millar Tech Review:Matt Rumble Editor:Cathy Tippett Feb 2011 http://domscode.com Introduction This tutorial is an

More information

Answer on Question# Programming, C#

Answer on Question# Programming, C# Answer on Question#38723 - Programming, C# 1. The development team of SoftSols Inc. has revamped the software according to the requirements of FlyHigh Airlines and is in the process of testing the software.

More information

Microsoft Content Management Server Integration with SAP

Microsoft Content Management Server Integration with SAP Microsoft Content Management Server Integration with SAP Using MCMS Custom Placeholders and the SAP.NET Connector Written by: Bill Olson, Avanade Tom Kirkby, Avanade Published on July 1 st, 2004 Abstract

More information

LINQ as Language Extensions

LINQ as Language Extensions (Language Integrated Query) The main Topics in this lecture are: What is LINQ? Main Advantages of LINQ. Working with LINQ in ASP.Net Introduction: Suppose you are writing an application using.net. Chances

More information

Creating a Top Records Report Filter in Sitecore OMS

Creating a Top Records Report Filter in Sitecore OMS Creating a Top Records Report Filter in Sitecore OMS Introduction Welcome to my third Sitecore blog on creating OMS reports. In this post, I will create a top filter that limits the records displayed in

More information

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init Option Strict On Imports System.Drawing.Imaging Imports System.Drawing Imports System Imports System.Collections Imports System.Configuration Imports System.Data Imports System.IO Imports System.Web Imports

More information