Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
(Project Report)
INDEX
INTRODUCTION
Problem Defination
Basic problem in manual system integration of two
head of admin viz and user. Lot of time was wasted
in paper work for above blocks of.
Why This..?
The scope of logics and integration of different
modules were the main source of inspiration to work
on this particular problem.
FEASIBILITY STUDY
A feasibility study is carried out to select the best system that meets
performance requirements.
Feasibility is the determination of whether or not a project is worth doing.
The process followed in making this determination is called a feasibility
study. This type of study determines if a project can and should be taken.
Since the feasibility study may lead to the commitment of large resources,
it becomes necessary that it should be conducted competently and that no
fundamental errors of judgment are made.
Depending on the results of the initial investigation, the survey is
expanded to a more detailed feasibility study. Feasibility study is a
test of system proposal according to its workability, impact on the
organization, ability to
resources.
The objective of the feasibility study is not to solve the problem
but to acquire a sense of its scope . During the study, the problem
definition is crystallized and aspects of the problem to be included
in the system are determined.
Consequently, costs and benefits are described with greater accuracy
at this stage.
It consists of the following:
the analysis
of
the
procedures
and
conclusions: Specific
recommendations
Economic Feasibility:
ANALYSIS
System Analysis
The analysis model must achieve three primary objectives:1. To describe the requirements of the customer.
2. To establish a basis for the creation of a software design.
3. To define a set of requirements that can be validated once software is
built.
An Overview to system analysis
The system analysis phase is considered to be one of the most
important phases in the system development life cycle. It is immensely
important that the software developer make through study of the existing
system. Thorough study of the system is made and need i.e. features that
are critical to system success and users wants (i.e. features that would be
good but not essential) are brought out. The study will enable the
developer to know the intricacies of the existing system.
Requirement analysis is done in order to understand the problem which
the S/W system is to solve e.g., the problem could be automating the
existing manual system or developing a completely new automated
system or a combination of the two. For large systems having a large
number of features and the need to perform many different tasks,
understanding the requirement of the system is a major task. The emphasis
in requirement analysis is on identifying what is needed from the system,
and not how the system achieves its goal.
This can be
Preliminary Investigation:
The design activity is divided into two phases: System Design and Detailed
Design. In system design the focus is on identifying the modules, whereas
during detailed design the focus is on designing the logic for each of the
modules.
3) Coding:
The goal of the coding phase is to translate the design of the system into
code in a given programming language. Hence during coding, the focus
should be on developing programs that are easy to read and understand, and
not simply on developing programs that are easy to write.
4) Testing:
Testing is the major quality control measure used during software
development. Its basic function is to detect errors in the software. Testing not
only uncover errors introduced during coding, but also errors introduced
during the previous phases. Thus, the goal of the testing is to uncover
requirement, design and coding errors in the programs. Therefore, different
levels of testing are used. Testing is an extremely critical and time
consuming activity. It requires proper planning of the overall testing process.
The output of the testing phase is the test report and the error report. Test
report contains the set of test cases and the result of executing the code with
these test cases. The error report describes the errors encountered and the
action taken to remove the errors.
SOFTWARE
REQUIREMENT
SPECIFICATION
Bibliography
Appendix
INTRODUCTION
The introduction states the goals and objectives of the software
describing it in the context of the computer -based system. Actually the
introduction may be nothing more than the software people of the
planning document.
INFORMATION
Online Recruitment System is to replace manual operations of
recruitment of an IT company. As recruitment is a round the year activity
involving thousands of candidates a need has been felt to automate the
entire operations. Applications are collected in a prescribed format and
checked for eligibility. All the eligible candidates are sent an automated
message (just like Admit Card) for the selection test. The results are
compiled and presented to management to decide on cut-offs for
interview. Based on the selection criteria decided by the management, the
qualified candidates are called for the interview.
FUNCTIONAL DESCRIPTION
The project also provides the facility to contact the registered user easily
without any admin interaction. If you find an existing entry meeting your
requirement, then you can contact the concerned party directly.
If there is no entry, which meets your requirement, you can register your
details on the site, so that others can find you. The project improves the
efficiency and effectiveness of the whole system.
BEHAVIORAL DESCRIPTION
IT Examine the operations of the software as a consequence of external
events and internally generated control characteristics. Here the Admin
checks the classified entered by the registered users. Admin is the only
person who can activate or deactivate the classified entered by the
registered users.
PROJECT PLANNING
I was assigned the duty for developing a computerized system known as
Property Classified. Working in team reinstates the team for some
common guidelines and standard to be followed by all the team members
across all team. For the optimum use of practical time it is necessary that
every session is planned. Planning of this project will include the following
things:
Topic Understanding.
Modular Break Up Of The System.
Processor Logic For Each Module.
Database Requirements.
Topic Understanding:
It is vital that the field of application as introduced in the project may be
totally a new field. I carefully went through the project to identify the
requirements of the project.
Modular Break Up Of The System:
Identify The Various Modules In The System.
List Them In The Right Hierarchy.
Identify Their Priority Of Development.
activate
the
Discussion
Topic
will
not
able
to
see
to
the
guest/teachers/students.
Module 5: Add Announcement Module
data is fetched. Now the user can made the required changes and then
accordingly, he updates the data. Again, the checks are followed in case
there is any invalid entry.
Module 13: Edit Articles Module
In this module, whenever an existing entity is required to be modified the
corresponding forms are opened and the database is manipulated and the
data is fetched. Now the user can made the required changes and then
accordingly, he updates the data. Again, the checks are followed in case
there is any invalid entry.
Module 14: Edit Album Module
In this module, whenever an existing entity is required to be modified the
corresponding forms are opened and the database is manipulated and the
data is fetched. Now the user can made the required changes and then
accordingly, he updates the data. Again, the checks are followed in case
there is any invalid entry.
Module 15: Edit Image Module
In this module, whenever an existing entity is required to be modified the
corresponding forms are opened and the database is manipulated and the
data is fetched. Now the user can made the required changes and then
accordingly, he updates the data. Again, the checks are followed in case
there is any invalid entry.
Database Requirements:
Identify The Various Tables Required.
Fields For These Tables.
The Various Key Fields (for example Primary key and Foreign key).
Identify The Various Constraints like Not Null, Unique etc.
The Database here used is Ms-SQL. The database tables are shown in
DATABASE DESIGN. The list of tables are:List of Tables:
Album
Announcement
Article
Event
Image
Login
Material
Poll
Ppt
Research
Story
Student
Teacher
Topic
Views
Vote
Windows XP / 2000
Front-End Tool
ASP.NET 2005/2008
Back-End
unprecedented
developer
productivity
with
performance,
ASP.NET Features
server
controls
enable
an
HTML-like style of declarative programming that let you build great pages
with far less code than with classic ASP. Displaying data, validating user
input, and uploading files are all amazingly easy. Best of all, ASP.NET pages
work in all browsers including Netscape, Opera, AOL, and Internet Explorer.
Flexible Language Options
ASP.NET lets you leverage your current programming language skills.
Unlike classic ASP, which supports only interpreted VBScript and JScript,
ASP.NET now supports more than 25 .NET languages (built-in support for
VB.NET, C#, and JScript.NET), giving you unprecedented flexibility in
your choice of language.
Compiled execution
ASP.NET is much faster than classic ASP, while preserving the "just hit
save" update model of ASP. However, no explicit compile step is required.
ASP.NET will automatically detect any changes, dynamically compile the
files if needed, and store the compiled results to reuse for subsequent
requests. Dynamic compilation ensures that your application is always up to
date, and compiled execution makes it fast. Most applications migrated
from classic ASP see a 3x to 5x increase in pages served.
session. And since business components created with the .NET Framework
are free-threaded, you no longer need to worry about thread affinity.
Enhanced Reliability
ASP.NET ensures that your application is always available to your users.
it
is
gracefully
released. Automatically,
disposed
without
and
the
administrator
leaked
memory
intervention
or
is
any
Easy Deployment
ASP.NET takes the pain out of deploying server applications. "No touch"
application deployment. ASP.NET dramatically simplifies installation of
your application. With ASP.NET, you can deploy an entire application as
easily as an HTML page, just copy it to the server. No need to run regsvr32
to register any components, and configuration settings are stored in an XML
file within the application.
Internet,
regardless
of
operating
system
or
programming
language. ASP.NET makes exposing and calling XML Web Services simple.
Any class can be converted into an XML Web Service with just a few lines
of code, and can be called by any SOAP client. Likewise, ASP.NET makes
it incredibly easy to call XML Web Services from your application. No
knowledge of networking, XML, or SOAP is required.
For example, a website could store all its content in a database. Whenever a
visitor views an article, they are retrieving data from the database. As you
know, websites aren't normally limited to just one user. So, at any given
Generally, it's the application that provides the functionality to these visitors.
It is the database that stores the data and makes it available. Having said
that, SQL Server does include some useful features that can assist the
application in providing its functionality.
DESIGN
Gantt chart
E-R diagram
Data Flow Diagram (DFD)
DataBase Design
GANTT CHART
Gantt Chart
Gantt Chart is a project scheduling technique. Progress can be represented
easily in a Gantt chart, by coloring each milestone when
completed. The project will start in the month of August and
end after 4 months at the end of April.
Analysis
Feasibility
Analysis
Design
Development
Implementation
DATABASE DESIGN
Maintenance
List of Tables:
Table Structure
Album
Announcement
Article
Event
Image
Login
Material
Poll
Ppt
Research
Story
Student
Teacher
Topic
Views
Vote
Table 1: Album
Field Name
Data Type
al_id
Number
al_name
al_dttm
Nvarchar
Nvarchar
Table 2: Announcement
Field Name
Data Type
Ann_id
Number
Ann_head
Ann_dttm
Nvarchar
Nvarchar
Ann_des
Nvarchar
Table 3: Article
Field Name
Data Type
Art_id
Number
Art_head
Art_dttm
Art_des
Nvarchar
Nvarchar
Nvarchar
Table 4: Event
Field Name
Data Type
Ev_id
Number
Ev_head
Ev_dttm
Ev_des
Nvarchar
Nvarchar
Nvarchar
Table 5: Image
Field Name
Data Type
Img_id
Number
img_name
img_alname
img_orgname
Nvarchar
Nvarchar
Nvarchar
Table 6: login
Field Name
Data Type
U_name
Nvarchar
U_pass
U_type
Nvarchar
Nvarchar
Table 7: Material
Field Name
Data Type
Mat_id
Number
mat_orgname
Mat_subject
Nvarchar
Nvarchar
mat_des
Mat_dttm
Mat_fname
Nvarchar
Nvarchar
Nvarchar
Table 8: Poll
Field Name
Data Type
Pol_id
Number
pol_ques
pol_dttm
Nvarchar
Nvarchar
Table 9: PPT
Field Name
Data Type
Ppt_id
Number
ppt_fname
ppt_des
Ppt_orgname
Ppt_dttm
Nvarchar
Nvarchar
Nvarchar
Nvarchar
Field Name
Data Type
Res_id
Number
Res_name
Res_des
Res_link1
Res_link2
Res_link3
Res_link4
Nvarchar
Nvarchar
Nvarchar
Nvarchar
Nvarchar
Nvarchar
Field Name
Data Type
story_id
Number
story_head
story _dttm
story _des
Nvarchar
Nvarchar
Nvarchar
Field Name
Data Type
St_id
Number
st_name
st_fname
st_add
st_cno
st_qual
st_pass
st_dttm
Nvarchar
Nvarchar
Nvarchar
Nvarchar
Nvarchar
Nvarchar
Nvarchar
Field Name
Data Type
t_id
Number
t_name
t_fname
t_add
t_cno
t_qual
t_pass
t_dttm
Nvarchar
Nvarchar
Nvarchar
Nvarchar
Nvarchar
Nvarchar
Nvarchar
Field Name
Data Type
Top_id
Number
Top_des
Top_subbyid
Top_dttm
Top_act
Top_subbyname
Top_subbytype
Nvarchar
Nvarchar
Nvarchar
Nvarchar
Nvarchar
Nvarchar
Field Name
Data Type
views_id
Number
views _des
views _topid
views _dttm
Views_subby
Nvarchar
Nvarchar
Nvarchar
Nvarchar
Field Name
Data Type
Vote_id
Number
Vote_decision
Vote_polid
Vote_dttm
Nvarchar
Nvarchar
Nvarchar
E-R DIAGRAM
Online Learning Portal
New user
Admin User
uname
H
as
nam
e
address
Admin
Creates new
upass
Teacher/Student
mobil
e
utype
homephon
e
Top_des
Top_subby
Top_id
creates new
Check
s
Discussion
Topic
Top_dttm
Top_ac
t
No
Activa
te
Yes
Add views
Discussion
Topic
End-Users are not alike. Some are intermittent users. The end-user can also
be a competitor, not an employee of the firm.
User managers have management responsibilities for application systems.
Definition of System:
In the broad sense, a system is simply a set of components that interact to
accomplish some purpose. Systems are all around us. As computers are
used more and more by persons who are not computer professionals ,
the face of systems development is taking on an additional dimension.
Users themselves are undertaking development of some of the systems
they use , as the executive in the vignette emphasized.
These different situations are represented by three distinct approaches to
the development of computer information systems:
Systems Development Life Cycle.
Structured Analysis Development Method.
Systems Prototype Method.
Systems Development Life Cycle:
Preliminary investigation.
Determination of system requirements.
Design of system.
Development of software.
System testing.
Implementation and evaluation.
Analysis
Design
ANALYSIS:
Objectives:
System analysis is conducted with the following objectives in mind:
Student
Registration
User
Student
Student Detail
TEacher
Teacher Registration
Login
Details
Teacher details
Login Details
User
Online
Learning
Portal
Activate / Deactivate
Activate/Delete
Discussion
Topic
CODE EFFICIENCY
CODE EFFICIENCY
For Code efficiency, the following conditions must be fulfilled:
1) Option Explicit:
All variables must be declared with proper data type. Option Explicit
keyword must be used, it forces each variable or expression in an application
to be defined with a specific data type through the use of the Dim, Private,
Public, Redim or Static keywords. If Option Explicit is not used,
undefined variables are automatically defined as Variant. Variant data type
must be avoided because it takes 16 bytes of memory.
2) Early Binding Vs Late Binding:
Early binding is faster than Late Binding because the application doesnt
have to interrogate the object at runtime to determine the objects properties
and methods. In Late Binding the objects are defined as objects. Late biding
is slower than Early Binding because the application must interrogate the
object to determine its properties and methods.
3) Reclaiming Space:
Reclaim space from strings by setting a string variable to the empty
string () space can also be reclaim from object by setting an object
variable to Nothing. It frees the space associated with the object if it is the
last reference to the object. It also has the advantage of reducing the amount
of cleanup work needed when the program terminates.
4)Control Array:
Complex forms needs more memory. The more controls put on a form, the
more memory it will require when it becomes loaded in to memory.
Therefore, reducing the number of controls reduces the memory
requirements. For this a control array must be used. A control array counts as
only one name. Control arrays consumes fewer resources than the equivalent
number of independent controls.
5)Reducing Memory Requirement:
By using Dynamic Arrays we can reduce memory requirements by
trimming the array to just the elements we need. Use the Redim Statement
to change the dimensions of the array. Erase statement can be used to free
the memory associated with the dynamic array.
Use fewer graphics. Graphic images consumes memory. The more graphics
we have, the more memory we are going to use.
Destroy forms when we finished with them. If we are finished with a
form we can use the unload statement to remove the form from memory.
This will free some memory resources. To free all of the form resources we
must set forms object name to nothing. (Set Form1= Nothing).
SCREENSHOT
HOME Page
Login Page
Course Page
Discussion Page
Course open
Announcement Page
Adedtech Page
Adeditimage Page
AdeditannPage
Adedimage Page
Adedevent Page
Stories Page
Logout Page
TESTING
It should be clear in mind that the philosophy behind testing is to find errors.
Test cases are devised with this purpose in mind. A test case is a set of data
that the system will process as normal input. However, the data are created
with the express intent of determining whether the system will process them
correctly. For example, test cases for inventory handling should include
situations in which the quantifies to be withdrawn from inventory exceed,
equal and are less than the actual quantities on hand. Each test case is
designed with the intent of finding errors in the way the system will process
it. There are two general strategies for testing software: Code testing and
Specification testing. In code testing, the analyst develops that cases to
execute every instructions and path in a program. Under specification
testing, the analyst examines the program specifications and then writes test
data to determine how the program operates under specific conditions.
Regardless of which strategy the analyst follows, there are preferred
practices to ensure that the testing is useful. The levels of tests and types of
test data, combined with testing libraries, are important aspects of the actual
test process.
Levels of Testing
Systems are not designed as entire systems nor are they tested as single
systems. The analyst must perform both unit and system testing.
Unit Testing:
In unit testing the analyst tests the programs making up a system. For this
reason, unit testing is sometimes called program testing. Unit testing gives
stress on the modules independently of one another, to find errors. This helps
the tester in detecting errors in coding and logic that are contained within
that module alone. The errors resulting from the interaction between
modules are initially avoided. For example, a hotel information system
consists of modules to handle reservations; guest checking and checkout;
restaurant, room service and miscellaneous charges; convention activities;
and accounts receivable billing. For each, it provides the ability to enter,
modify or retrieve data and respond to different types of inquiries or print
reports. The test cases needed for unit testing should exercise each condition
and option.
Unit testing can be performed from the bottom up, starting with smallest and
lowest-level modules and proceeding one at a time. For each module in
bottom-up testing a short program is used to execute the module and
provides the needed data, so that the module is asked to perform the way it
will when embedded within the larger system.
System Testing:
The important and essential part of the system development phase, after
designing and developing the software is system testing. We cannot say that
every program or system design is perfect and because of lack of
communication between the user and the designer, some error is there in the
software development. The number and nature of errors in a newly designed
system depend on some usual factors like communication between the user
and the designer; the programmer's ability to generate a code that reflects
exactly the systems specifications and the time frame for the design.
Theoretically, a newly designed system should have all the parts or subsystems are in working order, but in reality, each sub-system works
independently. This is the time to gather all the subsystem into one pool and
test the whole system to determine whether it meets the user requirements.
This is the last change to detect and correct errors before the system is
installed for user acceptance testing. The purpose of system testing is to
consider all the likely variations to which it will be subjected and then push
the system to its limits.
Testing is an important function to the success of the system. System testing
makes a logical assumption that if all the parts of the system are correct, the
goal will be successfully activated. Another reason for system testing is its
utility as a user-oriented vehicle before implementation.
System testing consists of the following five steps:
1) Program testing
2) String testing
3) System testing
4) System documentation
5) User acceptance testing
Program Testing:
A program represents the logical elements of a system. For a program to run
satisfactorily, it must compile and test data correctly and tie in properly with
other programs. it is the responsibility of a programmer to have an error free
program. At the time of testing the system, there exists two types of errors
that should be checked. These errors are syntax and logic. A syntax error is a
program statement that violates one or more rules of the language in which it
is written. An improperly defined field dimension or omitted key words are
common syntax errors. These errors are shown through error messages
generated by the computer. A logic error, on the other hand, deals with
incorrect data fields out of range items, and invalid combinations. Since the
logical errors are not detected by compiler, the programmer must examine
the output carefully to detect them.
When a program is tested, the actual output is compared with the expected
output. When there is a discrepancy, the sequence of the instructions, must
be traced to determine the problem. The process is facilitated by breaking
the program down into self-contained portions, each of which can be
checked at certain key points.
String Testing:
Programs are invariably related to one another and interact in a total system.
Each program is tested to see whether it conforms to related programs in the
system. Each part of the system is tested against the entire module with both
test and live data before the whole system is ready to be tested.
System Testing:
System testing is designed to uncover weaknesses that were not found in
earlier tests. This includes forced system failure and validation of total
system as it will be implemented by its user in the operational environment.
Under this testing, generally we take low volumes of transactions based on
live data. This volume is increased until the maximum level for each
transaction type is reached. The total system is also tested for recovery and
fallback after various major failures to ensure that no data are lost during the
emergency. All this is done with the old system still in operation. When we
see that the proposed system is successful in the test, the old system is
discontinued.
System Documentation:
All design and test documentation should be well prepared and kept in the
library for future reference. The library is the central location for
maintenance of the new system.
User Acceptance Testing:
An acceptance test has the objective of selling the user on the validity and
reliability of the system. It verifies that the system's procedures operate to
system specifications and that the integrity of important data is maintained.
Performance of an acceptance test is actually the user's show. User
motivation is very important for the successful performance of the system.
After that a comprehensive test report is prepared. This report shows the
system's tolerance, performance range, error rate and accuracy.
example, powering down system at the end of week or responding to paperout light on printer.
Human Factors Testing: It determines how users will use the system when
processing data or preparing reports.
IMPLEMENTATION
Hardware Requirement
Software Requirement
Hardware Requirement
Hardware is the term given to machinery itself and to various individual
pieces of equipment.
It refers to the physical devices of a computer system. Thus the input,
storage, processing control and output devices are hardware.
RAM
256 MB
HDD
40 GB
FDD
1.44 MB
CD-ROM
52X
DeskJet 670 C
Software Requirement
Software means a collection of program where the objective is to enhance
the capabilities of the hardware machine.
Windows 9x/NT/2000/XP
Database
MAINTENANCE
MAINTENANCE
Once the software is delivered and developed, it enters the maintenance
phase. After implementation systems need maintenance. Beyond monkey
testing during Software development some errors may not appear. During its
usage by the end-user with actual data certain errors may disclose.
Therefore some residual errors or bugs remain in the system that must be
removed as they are discovered. Many of these surfaces only after the
system have been in operation sometimes for a long time. These errors once
discovered need to be removed on an urgent basis for the smooth running of
the
system,
leading
to
the
software
getting
changed.
Compilation errors are errors during coding and are to be taken care by the
developer during development process.
Runtime errors are those which occurs during running of the program.
Whenever there is an occurrence of error an Error Window opens in the
middle of the screen displaying the type of error, Error Number and the
Nearest Possible reason as to why the error has occurred. With the
occurrence of this Error Window the operator (End-user) should note the
type of error, the error number and the description of the error and should
immediately report to the concerned Developer or Administrator.
Now comes the role of the Maintenance Personals. After knowing the entire
details from the end-user like where or at which screen does this error
occurred or what type of data was feeded by the user or the point of
malfunctioning. Considering this error as the main reason for the
malfunctioning the programmer now re-examines all the possible factors,
which act behind the particular screen where error has occurred.
After debugging the required error the programmer itself tests the same
screen or process with dummy data. Only after getting completely satisfied
with problem rectification the programmer compiles and runs the program.
CODING
Home Page
Home.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="home.aspx.cs" Inherits="home"
Title="Home :: Online Learning Portal ::" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<table width="100%" border="0">
<tr><td valign="top" style="width: 75%;border-right: black thin outset;"
>
<img src="pics/main.JPG" name="slide"
style="filter:blendTrans(duration=4); width: 555px; height: 171px;"
alt=""/>
<script language="JavaScript1.1">
var whichlink=0
var whichimage=0
var blenddelay=(ie)? document.images.slide.filters[0].duration*1000 : 0
function slideit(){
if (!document.images) return
if (ie) document.images.slide.filters[0].apply()
document.images.slide.src=imageholder[whichimage].src
if (ie) document.images.slide.filters[0].play()
whichlink=whichimage
whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
setTimeout("slideit()",slidespeed+blenddelay)
}
slideit()
</script>
<br />
<font color="white" size="3" face="Comic Sans MS"> <i>Online
Learning Portal</i></font><br />
<p align="justify">Flexible and Online Learning is delivered through
a web-based, student-focussed
system called the Learning Portal.
The learning portal is state-of-the-art and has
been purpose designed for students.</p>
<p align="justify">
Study materials are presented in a range of formats from PDFs
through to video and
interactive media which will be available only for students/
teachers. There are
Research Links also, which will be very helpful to students for
searching their
study related topics. There are Success Stories which will tell the
students about
Home.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
System;
System.Data;
System.Configuration;
System.Collections;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Data.SqlClient;
login.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login"
Title="Login :: Online Learning Portal ::" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<br />
<table align="center" >
<tr>
<td align="center" colspan="2" height="20">
<asp:Label ID="Label3" runat="server" ForeColor="white"
Text="Login"></asp:Label></td>
</tr>
<tr>
<td align="center" colspan="2" height="20">
<asp:Label ID="Label1" runat="server" ForeColor="red"
Text="" Visible="false"></asp:Label></td>
</tr>
<tr>
<td height="25">
<asp:Label ID="Label2" runat="server" Font-Bold="True"
Style="position: static" Width="97px">Login Name :</asp:Label></td>
login.aspx.cs
using
using
using
using
using
using
using
System;
System.Data;
System.Configuration;
System.Collections;
System.Web;
System.Web.Security;
System.Web.UI;
using
using
using
using
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Data.SqlClient;
Label1.Visible = true;
Label1.Text = "!!..Enter Correct Id/Password..!!";
}
}
c.con.Close();
}
}
home.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="home.aspx.cs" Inherits="home"
Title="Home :: Online Learning Portal ::" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<table width="100%" border="0">
<tr><td valign="top" style="width: 75%;border-right: black thin outset;"
>
<img src="pics/main.JPG" name="slide"
style="filter:blendTrans(duration=4); width: 555px; height: 171px;"
alt=""/>
<script language="JavaScript1.1">
var whichlink=0
var whichimage=0
var blenddelay=(ie)? document.images.slide.filters[0].duration*1000 : 0
function slideit(){
if (!document.images) return
if (ie) document.images.slide.filters[0].apply()
document.images.slide.src=imageholder[whichimage].src
if (ie) document.images.slide.filters[0].play()
whichlink=whichimage
whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
setTimeout("slideit()",slidespeed+blenddelay)
}
slideit()
</script>
<br />
<font color="white" size="3" face="Comic Sans MS"> <i>Online
Learning Portal</i></font><br />
<p align="justify">Flexible and Online Learning is delivered through
a web-based, student-focussed
system called the Learning Portal.
The learning portal is state-of-the-art and has
been purpose designed for students.</p>
<p align="justify">
home.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
System;
System.Data;
System.Configuration;
System.Collections;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Data.SqlClient;
else
{
c.con.Open();
string str = "select * from login where utype='" +
DropDownList1.SelectedValue + "'";
SqlCommand cmd = new SqlCommand(str, c.con);
SqlDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{
if (dr["uname"].ToString() == txt_id.Text &&
dr["upass"].ToString() == txt_pwd.Text)
{
if (DropDownList1.SelectedValue == "a")
{
Session["uid"] = "admin";
Response.Redirect("adhome.aspx");
}
if (DropDownList1.SelectedValue == "s")
{
Session["uid"] = txt_id.Text;
Session["stud"] = "student";
Response.Redirect("home.aspx");
}
if (DropDownList1.SelectedValue == "t")
{
Session["uid"] = txt_id.Text;
Session["tech"] = "teacher";
Response.Redirect("home.aspx");
}
}
else
{
Label1.Visible = true;
Label1.Text = "!!..Enter Correct Id/Password..!!";
}
}
c.con.Close();
}
}
}
adactdistop.aspx
<%@ Page Language="C#" MasterPageFile="~/Admin.master"
AutoEventWireup="true" CodeFile="adactdistop.aspx.cs"
Inherits="adactdistop" Title=":: Online Learning Portal ::" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<table id="Table2" align="center" border="0" cellpadding="0"
cellspacing="0" width="70%">
<tr>
<td align="center" height="25">
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl="adactdistop.aspx" Width="204px"><font
color="white">Activate Discussion Topic</font></asp:HyperLink>
|
<asp:HyperLink ID="HyperLink2" runat="server"
NavigateUrl="addeactdistop.aspx" Width="218px"><font
color="white">Deactivate Discussion Topic</font></asp:HyperLink></td>
</tr>
</table>
<hr size="2" style="color: black" width="100%" />
<span style="color: #ffffff">
<br />
>> Activate Discussion Topic</span><br />
<hr color="black" size="2" width="100%" />
<div align="center">
<asp:Label ID="Label1" runat="server" Text="" Visible ="false"
ForeColor ="white"></asp:Label></div>
<br />
<asp:Table ID="Table3" runat="server" CellPadding="1"
CellSpacing="1" GridLines="Both"
Height="35px" Width="100%">
<asp:TableRow ID="TableRow1" runat="server">
<asp:TableCell ID="TableCell1" runat="server"
BorderWidth="1px" HorizontalAlign="Center"
Text="ID" Width="7%"></asp:TableCell>
<asp:TableCell ID="TableCell2" runat="server"
BorderWidth="1px" HorizontalAlign="Center"
Text="Description" Width="45%"></asp:TableCell>
<asp:TableCell ID="TableCell3" runat="server"
BorderWidth="1px" HorizontalAlign="Center"
Text="Submitted By" Width="18%"></asp:TableCell>
<asp:TableCell ID="TableCell4" runat="server"
BorderWidth="1px" HorizontalAlign="Center"
Text="Date/Time" Width="15%"></asp:TableCell>
<asp:TableCell ID="TableCell5" runat="server"
BorderWidth="1px" HorizontalAlign="Center"
Text="Activate" Width="15%"></asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:Content>
adactdistop.aspx.cs
using System;
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.Data.SqlClient;
public partial class adactdistop : System.Web.UI.Page
{
c1.HorizontalAlign
c2.HorizontalAlign
c3.HorizontalAlign
c4.HorizontalAlign
c5.HorizontalAlign
=
=
=
=
=
HorizontalAlign.Center;
HorizontalAlign.Left;
HorizontalAlign.Center;
HorizontalAlign.Center;
HorizontalAlign.Center;
Table3.Rows.Add(R);
i = i + 1;
}
c.con.Close();
}
adadalbum.aspx
<%@ Page Language="C#" MasterPageFile="~/Admin.master"
AutoEventWireup="true" CodeFile="adadalbum.aspx.cs" Inherits="adadimage"
Title=":: Online Learning Portal ::" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<table id="Table1" border="0" cellpadding="0" cellspacing="0"
width="50%" align="center">
<tr>
<td align="center" height="25" valign
="bottom"><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl
="adadalbum.aspx"><font color="white">Add/Edit
Album</font></asp:HyperLink> | <asp:HyperLink ID="HyperLink2"
runat="server" NavigateUrl ="adadimage.aspx" ><font color="white">Add
Image</font></asp:HyperLink> | <asp:HyperLink ID="HyperLink5"
runat="server" NavigateUrl ="adedimage.aspx" ><font color="white">Edit
Image Details</font></asp:HyperLink></td>
</tr>
</table>
<hr size="2" style="color: black" width="100%" />
<br />
<font color="white">>> Add/Edit Album</font>
<hr color="black" size="2" width="100%" />
<br />
<br />
<table align="center">
<tr>
<td>
<asp:Label ID="Label1" runat="server" Style="position: static"
Text="Album Name :"></asp:Label></td><td>
<asp:TextBox ID="TextBox1" runat="server" Style="position:
static" MaxLength="20" TabIndex="1"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ControlToValidate="TextBox1"
ErrorMessage="*"></asp:RequiredFieldValidator></td><td
rowspan ="3" style="width: 141px"><asp:ListBox ID="ListBox1"
runat="server" AutoPostBack="True"
OnSelectedIndexChanged="ListBox1_SelectedIndexChanged"
Style="position: static" Height="95px"
Width="139px"></asp:ListBox></td>
</tr>
<tr><td> </td><td> </td></tr>
<tr><td> </td><td> </td></tr>
<tr><td colspan ="2" align ="center" rowspan ="2" >
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click"
Style="position: static"
Text="Button" CssClass="bttn" TabIndex="2" />
<asp:Button ID="Button3" runat="server" OnClick="Button3_Click"
Style="position: static"
Text="Delete" CssClass="bttn" /></td>
</tr>
<tr><td align="left" ><font size="1" color="red">* Mandatory
Fields</font></td></tr>
</table>
<br />
</asp:Content>
adadalbum.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
System;
System.Data;
System.Configuration;
System.Collections;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Data.SqlClient;
Course.aspx
</asp:TableRow>
</asp:Table>
<div align="center">
<asp:Label ID="Label2" runat="server" Text="!!..No Course Material
yet added..!!"></asp:Label></div><br />
<font color="white">3. </font><asp:HyperLink NavigateUrl
="~/Course.aspx?sub=m" ID="HyperLink3" runat="server"><font
color="white">Maths</font></asp:HyperLink><br />
<br />
<asp:Table ID="Table3" runat="server" CellPadding="1"
CellSpacing="1" GridLines="Both"
Height="35px" Visible="False" Width="100%">
<asp:TableRow ID="TableRow3" runat="server">
<asp:TableCell ID="TableCell31" runat="server"
BorderWidth="1px" HorizontalAlign="Center" Text="S.No"
Width="10%"></asp:TableCell>
<asp:TableCell ID="TableCell32" runat="server"
BorderWidth="1px" HorizontalAlign="Center" Text="Description"
Width="60%"></asp:TableCell>
<asp:TableCell ID="TableCell33" runat="server"
BorderWidth="1px" HorizontalAlign="Center" Text="Filename"
Width="15%"></asp:TableCell>
<asp:TableCell ID="TableCell34" runat="server"
BorderWidth="1px" HorizontalAlign="Center" Text="Date/Time"
Width="15%"></asp:TableCell>
</asp:TableRow>
</asp:Table>
<div align="center">
<asp:Label ID="Label3" runat="server" Text="!!..No Course Material
yet added..!!"></asp:Label></div><br />
<font color="white"> 4. </font><asp:HyperLink NavigateUrl
="~/Course.aspx?sub=p" ID="HyperLink4" runat="server"><font
color="white">Physics</font></asp:HyperLink><br />
<br />
<asp:Table ID="Table4" runat="server" CellPadding="1" CellSpacing="1"
GridLines="Both"
Height="35px" Visible="False" Width="100%">
<asp:TableRow ID="TableRow41" runat="server">
<asp:TableCell ID="TableCell41" runat="server"
BorderWidth="1px" HorizontalAlign="Center" Text="S.No"
Width="10%"></asp:TableCell>
<asp:TableCell ID="TableCell42" runat="server"
BorderWidth="1px" HorizontalAlign="Center" Text="Description"
Width="60%"></asp:TableCell>
<asp:TableCell ID="TableCell43" runat="server"
BorderWidth="1px" HorizontalAlign="Center" Text="Filename"
Width="15%"></asp:TableCell>
<asp:TableCell ID="TableCell44" runat="server"
BorderWidth="1px" HorizontalAlign="Center" Text="Date/Time"
Width="15%"></asp:TableCell>
</asp:TableRow>
</asp:Table>
<div align="center">
<asp:Label ID="Label4" runat="server" Text="!!..No Course Material
yet added..!!"></asp:Label></div><br />
</asp:Content>
Course.aspx.cs
using System;
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.Data.SqlClient;
public partial class Course : System.Web.UI.Page
{
Connct c = new Connct();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["uid"] == null)
{
Response.Redirect("login.aspx?log=n");
}
else
{
if (Request.QueryString["sub"] == null)
{
if (!Page.IsPostBack)
{
Table1.Visible = false;
Label1.Visible = false;
Table2.Visible = false;
Label2.Visible = false;
Table3.Visible = false;
Label3.Visible = false;
Table4.Visible = false;
Label4.Visible = false;
}
}
else
{
Table1.Visible = false;
Label1.Visible = false;
Table2.Visible = false;
Label2.Visible = false;
Table3.Visible = false;
Label3.Visible = false;
Table4.Visible = false;
Label4.Visible = false;
if (Request.QueryString["sub"] == "cs")
{
Table1.Visible = true;
Label1.Visible = true;
c.con.Open();
string str = "select * from material where
mat_subject='Computer Science'";
HyperLink();
dr["mat_id"];
new TableRow();
= new TableCell();
= new TableCell();
= new TableCell();
= new TableCell();
c1.Text = a.ToString();
System.Web.UI.WebControls.HyperLink h1 = new
h1.NavigateUrl = "courseopen.aspx?mid=" +
h1.Text = dr["mat_fname"].ToString();
c3.Controls.Add(h1);
c2.Text = dr["mat_des"].ToString();
c4.Text = dr["mat_dttm"].ToString();
R.Cells.Add(c1);
R.Cells.Add(c2);
R.Cells.Add(c3);
R.Cells.Add(c4);
c1.HorizontalAlign
c2.HorizontalAlign
c3.HorizontalAlign
c4.HorizontalAlign
=
=
=
=
HorizontalAlign.Center;
HorizontalAlign.Left;
HorizontalAlign.Left;
HorizontalAlign.Center;
Table1.Rows.Add(R);
i = i + 1;
a = a + 1;
}
if (i > 0)
{
Label1.Visible
Table1.Visible
}
else
{
Label1.Visible
Table1.Visible
}
dr.Close();
c.con.Close();
= false;
= true;
= true;
= false;
}
if (Request.QueryString["sub"] == "m")
{
Table3.Visible = true;
Label3.Visible = true;
c.con.Open();
string str = "select * from material where
mat_subject='Maths'";
HyperLink();
dr["mat_id"];
new TableRow();
= new TableCell();
= new TableCell();
= new TableCell();
= new TableCell();
c1.Text = a.ToString();
System.Web.UI.WebControls.HyperLink h1 = new
h1.NavigateUrl = "courseopen.aspx?mid=" +
h1.Text = dr["mat_orgname"].ToString();
c3.Controls.Add(h1);
c2.Text = dr["mat_des"].ToString();
c4.Text = dr["mat_dttm"].ToString();
R.Cells.Add(c1);
R.Cells.Add(c2);
R.Cells.Add(c3);
R.Cells.Add(c4);
c1.HorizontalAlign
c2.HorizontalAlign
c3.HorizontalAlign
c4.HorizontalAlign
=
=
=
=
HorizontalAlign.Center;
HorizontalAlign.Left;
HorizontalAlign.Left;
HorizontalAlign.Center;
Table3.Rows.Add(R);
i = i + 1;
a = a + 1;
}
if (i > 0)
{
Label3.Visible
Table3.Visible
}
else
{
Label3.Visible
Table3.Visible
}
dr.Close();
c.con.Close();
= false;
= true;
= true;
= false;
}
if (Request.QueryString["sub"] == "p")
{
Table4.Visible = true;
Label4.Visible = true;
c.con.Open();
string str = "select * from material where
mat_subject='Physics'";
h1.NavigateUrl = "courseopen.aspx?mid=" +
h1.Text = dr["mat_orgname"].ToString();
c3.Controls.Add(h1);
c2.Text = dr["mat_des"].ToString();
c4.Text = dr["mat_dttm"].ToString();
R.Cells.Add(c1);
R.Cells.Add(c2);
R.Cells.Add(c3);
R.Cells.Add(c4);
c1.HorizontalAlign
c2.HorizontalAlign
c3.HorizontalAlign
c4.HorizontalAlign
=
=
=
=
HorizontalAlign.Center;
HorizontalAlign.Left;
HorizontalAlign.Left;
HorizontalAlign.Center;
Table4.Rows.Add(R);
i = i + 1;
a = a + 1;
}
if (i > 0)
{
Label4.Visible
Table4.Visible
}
else
{
Label4.Visible
Table4.Visible
}
dr.Close();
c.con.Close();
= false;
= true;
= true;
= false;
}
if (Request.QueryString["sub"] == "eng")
{
Table2.Visible = true;
Label2.Visible = true;
c.con.Open();
string str = "select * from material where
mat_subject='English'";
SqlCommand cmd = new SqlCommand(str, c.con);
SqlDataReader dr = cmd.ExecuteReader();
int i = 0;
int a = 1;
while (dr.Read())
{
TableRow R = new TableRow();
TableCell c1 = new TableCell();
TableCell c2 = new TableCell();
TableCell c3 = new TableCell();
TableCell c4 = new TableCell();
c1.Text = a.ToString();
System.Web.UI.WebControls.HyperLink h1 = new
HyperLink();
h1.NavigateUrl = "courseopen.aspx?mid=" +
dr["mat_id"];
h1.Text = dr["mat_orgname"].ToString();
c3.Controls.Add(h1);
c2.Text = dr["mat_des"].ToString();
c4.Text = dr["mat_dttm"].ToString();
R.Cells.Add(c1);
R.Cells.Add(c2);
R.Cells.Add(c3);
R.Cells.Add(c4);
c1.HorizontalAlign
c2.HorizontalAlign
c3.HorizontalAlign
c4.HorizontalAlign
=
=
=
=
HorizontalAlign.Center;
HorizontalAlign.Left;
HorizontalAlign.Left;
HorizontalAlign.Center;
Table2.Rows.Add(R);
i = i + 1;
a = a + 1;
}
}
}
}
if (i > 0)
{
Label2.Visible
Table2.Visible
}
else
{
Label2.Visible
Table2.Visible
}
dr.Close();
c.con.Close();
Adsendmail.aspx
= false;
= true;
= true;
= false;
Adsendmail.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
System;
System.Data;
System.Configuration;
System.Collections;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Data.SqlClient;
Session["quid"] = quid[i].ToString();
c.con.Open();
string str = "select * from usr where u_id=" + quid[i];
SqlCommand cmd = new SqlCommand(str, c.con);
SqlDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{
lbl_ID.Text = dr["u_id"].ToString();
lbl_name.Text = dr["u_name"].ToString();
lbl_pwd.Text = dr["u_pwd"].ToString();
}
dr.Close();
c.con.Close();
c.con.Open();
string str2 = "select * from usr_mail order by m_id";
SqlCommand cmd2 = new SqlCommand(str2, c.con);
SqlDataReader dr2 = cmd2.ExecuteReader();
int i1 = 0;
while (dr2.Read())
{
int a = 0;
a = Convert.ToInt32(dr2["m_id"].ToString());
ViewState["mid"] = a.ToString();
i1 = i1 + 1;
}
if (i1 > 0)
{
int a =
Convert.ToInt32(ViewState["mid"].ToString());
a = a + 1;
ViewState ["id"] = a.ToString();
}
else
ViewState ["id"] = "10201";
c.con.Close();
c.con.Open();
string body = "Hi " + lbl_name.Text + ",\r\nYou are
selected for the written test.\r\n Your login details are : \r\n\r\n
ID:- " + lbl_ID.Text + "\r\nPassword: " + lbl_pwd.Text + "\r\nBest Of
Luck.\r\n \r\nThanks & Regards, \r\nAdmin";
string abc = "insert into
usr_mail(m_id,m_usrid,m_sendby,m_dttm,m_sub,m_body) values(" +
ViewState["id"].ToString() + ",'" + quid[i] + "','Admin','" +
System.DateTime.Now.ToString() + "','Admit Card Details','" + body +
"')";
SqlCommand cmd1 = new SqlCommand(abc, c.con);
cmd1.ExecuteNonQuery();
if (i == 0)
Label1.Text += quid[i];
else
Label1.Text += "," + quid[i];
//i = i + 1;
c.con.Close();
}
}
Response.Redirect("adsearch.aspx?com=" + Label1.Text);
Front master
<%@ Master Language="C#" AutoEventWireup="true"
CodeFile="front.master.cs" Inherits="front" %>
<!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 id="Head1" runat="server">
<style type ="text/css">
body
{
valign="top";
margin:0px;
}
</style>
<script language="JavaScript1.1" type="text/javascript">
//specify interval between slide (in mili seconds)
var slidespeed=3000
//specify images
var slideimages=new Array("images/1.JPG","images/2.JPG","images/3.JPG")
//specify corresponding links
var slidelinks=new Array("#","#","#")
var newwindow=1 //open links in new window? 1=yes, 0=no
var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}
function gotoshow(){
if (newwindow)
window.open(slidelinks[whichlink])
else
window.location=slidelinks[whichlink]
}
function DL1_onclick() {
}
//-->
</script>
<link type ="text/css" rel="Stylesheet" href ="css/StyleSheet.css" />
Front master.cs
using
using
using
using
using
using
using
using
using
using
System;
System.Data;
System.Configuration;
System.Collections;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
Logout.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="logout.aspx.cs" Inherits="logout"
Title=":: Online Learning Portal ::" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
</asp:Content>
Logout.aspx.cs
using
using
using
using
using
using
using
using
using
using
System;
System.Data;
System.Configuration;
System.Collections;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
Newusr.aspx
<%@ Page Language="C#" MasterPageFile="~/front.master"
AutoEventWireup="true" CodeFile="newuser.aspx.cs" Inherits="newuser"
Title=":: ONLINE RECRUITMENT SYSTEM ::" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<span style="color: #000000">
<br />
>> New User<br />
<hr color="black" size="2" width="100%" />
</span>
<table id="Table2" align="center" style="color: #ffffff">
<tr>
<td align="center" colspan="3" height="25">
<asp:Label ID="Label9" runat="server" Font-Bold="True"
ForeColor="Red" Visible="False"></asp:Label></td>
</tr>
<tr style="color: #000000">
<td align="right" height="25">
<asp:Label ID="Label1" runat="server" Text="User
ID :"></asp:Label></td>
<td colspan="2">
<span style="font-size: 7pt; color:
#ff0000"> </span><asp:TextBox ID="txt_cid"
runat="server" ReadOnly="true"
Width="93px"></asp:TextBox>
</td>
</tr>
<tr style="color: #000000">
<td align="right" height="25">
<asp:Label ID="Label2" runat="server"
Text="Password :"></asp:Label></td>
<td colspan="2">
<asp:TextBox ID="txt_pass" runat="server"
MaxLength="15" TabIndex="1" TextMode="Password"
Width="93px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4"
runat="server" ControlToValidate="txt_pass"
ErrorMessage="*"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" height="25">
<asp:Label ID="Label3" runat="server" ForeColor="Black"
Text="Name :"></asp:Label>
</td>
<td colspan="2">
<asp:TextBox ID="txt_cname" runat="server"
CausesValidation="True" MaxLength="30"
TabIndex="2" Width="230px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ControlToValidate="txt_cname"
ErrorMessage="*"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" height="25">
<asp:Label ID="Label6" runat="server" ForeColor="Black"
Text="Father's Name :"></asp:Label>
</td>
<td colspan="2">
<asp:TextBox ID="txt_fname" runat="server"
CausesValidation="True" MaxLength="30"
TabIndex="3" Width="230px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server" ControlToValidate="txt_fname"
ErrorMessage="*"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" height="25">
<asp:Label ID="Label13" runat="server" ForeColor="Black"
Text="Date Of Birth :"></asp:Label>
</td>
<td colspan="2">
<asp:DropDownList ID="ddl_dte" runat="server"
TabIndex="4">
<asp:ListItem Text="----Date----"></asp:ListItem>
<asp:ListItem Text="01"></asp:ListItem>
<asp:ListItem Text="02"></asp:ListItem>
<asp:ListItem Text="03"></asp:ListItem>
<asp:ListItem Text="04"></asp:ListItem>
<asp:ListItem Text="05"></asp:ListItem>
<asp:ListItem Text="06"></asp:ListItem>
<asp:ListItem Text="07"></asp:ListItem>
<asp:ListItem Text="08"></asp:ListItem>
<asp:ListItem Text="09"></asp:ListItem>
<asp:ListItem Text="10"></asp:ListItem>
<asp:ListItem Text="11"></asp:ListItem>
<asp:ListItem Text="12"></asp:ListItem>
<asp:ListItem Text="13"></asp:ListItem>
<asp:ListItem Text="14"></asp:ListItem>
<asp:ListItem Text="15"></asp:ListItem>
<asp:ListItem Text="16"></asp:ListItem>
<asp:ListItem Text="17"></asp:ListItem>
<asp:ListItem Text="18"></asp:ListItem>
<asp:ListItem Text="19"></asp:ListItem>
<asp:ListItem Text="20"></asp:ListItem>
<asp:ListItem Text="21"></asp:ListItem>
<asp:ListItem Text="22"></asp:ListItem>
<asp:ListItem Text="23"></asp:ListItem>
<asp:ListItem Text="24"></asp:ListItem>
<asp:ListItem Text="25"></asp:ListItem>
<asp:ListItem Text="26"></asp:ListItem>
<asp:ListItem Text="27"></asp:ListItem>
<asp:ListItem Text="28"></asp:ListItem>
<asp:ListItem Text="29"></asp:ListItem>
<asp:ListItem Text="30"></asp:ListItem>
<asp:ListItem Text="31"></asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddl_mon" runat="server"
TabIndex="5">
TabIndex="6">
<asp:ListItem Text="----Month----"></asp:ListItem>
<asp:ListItem Text="Jan"></asp:ListItem>
<asp:ListItem Text="Feb"></asp:ListItem>
<asp:ListItem Text="Mar"></asp:ListItem>
<asp:ListItem Text="Apr"></asp:ListItem>
<asp:ListItem Text="May"></asp:ListItem>
<asp:ListItem Text="Jun"></asp:ListItem>
<asp:ListItem Text="Jul"></asp:ListItem>
<asp:ListItem Text="Aug"></asp:ListItem>
<asp:ListItem Text="Sep"></asp:ListItem>
<asp:ListItem Text="Oct"></asp:ListItem>
<asp:ListItem Text="Nov"></asp:ListItem>
<asp:ListItem Text="Dec"></asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddl_dobyr" runat="server"
<asp:ListItem Text="----Year----"></asp:ListItem>
<asp:ListItem Text="1980"></asp:ListItem>
<asp:ListItem Text="1981"></asp:ListItem>
<asp:ListItem Text="1982"></asp:ListItem>
<asp:ListItem Text="1983"></asp:ListItem>
<asp:ListItem Text="1984"></asp:ListItem>
<asp:ListItem Text="1985"></asp:ListItem>
<asp:ListItem Text="1986"></asp:ListItem>
<asp:ListItem Text="1987"></asp:ListItem>
<asp:ListItem Text="1988"></asp:ListItem>
<asp:ListItem Text="1989"></asp:ListItem>
<asp:ListItem Text="1990"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="right" height="25">
<asp:Label ID="Label4" runat="server" ForeColor="Black"
Text="Address :"></asp:Label>
</td>
<td colspan="2">
<asp:TextBox ID="txt_cadd" runat="server"
CausesValidation="True" Height="58px"
MaxLength="250" TabIndex="7" TextMode="MultiLine"
Width="230px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server" ControlToValidate="txt_cadd"
ErrorMessage="*"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" height="25">
<asp:Label ID="Label5" runat="server" ForeColor="Black"
Text="Contact No :"></asp:Label>
</td>
<td colspan="2">
<asp:TextBox ID="txt_ccno" runat="server"
CausesValidation="True" MaxLength="10"
TabIndex="8" Width="230px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6"
runat="server" ControlToValidate="txt_ccno"
ErrorMessage="*"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator
ID="RegularExpressionValidator2" runat="server"
ControlToValidate="txt_ccno"
ErrorMessage="Enter only Numbers"
ValidationExpression="[0-9]*"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td align="right" height="25">
<asp:Label ID="Label7" runat="server" ForeColor="Black"
Text="Course/Degree :"></asp:Label></td>
<td colspan="2">
<asp:DropDownList ID="ddl_degree" runat="server"
TabIndex="9">
<asp:ListItem Text="----Select----"
Value="n"></asp:ListItem>
<asp:ListItem Text="BA"></asp:ListItem>
<asp:ListItem Text="BCom"></asp:ListItem>
<asp:ListItem Text="BSC"></asp:ListItem>
<asp:ListItem Text="BBA"></asp:ListItem>
<asp:ListItem Text="BCA"></asp:ListItem>
<asp:ListItem Text="BED"></asp:ListItem>
<asp:ListItem Text="BIT"></asp:ListItem>
<asp:ListItem Text="BTech"></asp:ListItem>
<asp:ListItem Text="MA"></asp:ListItem>
<asp:ListItem Text="MCA"></asp:ListItem>
<asp:ListItem Text="MBA"></asp:ListItem>
<asp:ListItem Text="MCOM"></asp:ListItem>
<asp:ListItem Text="MSC"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="right" height="25">
<asp:Label ID="Label8" runat="server" ForeColor="Black"
Text="Marks Obtained :"></asp:Label>
</td>
<td colspan="2">
<asp:TextBox ID="txt_marks" runat="server"
CausesValidation="True" MaxLength="2"
TabIndex="10" Width="43px"></asp:TextBox>
<font color="black">%<asp:RequiredFieldValidator
ID="RequiredFieldValidator7" runat="server"
ControlToValidate="txt_marks"
ErrorMessage="*"></asp:RequiredFieldValidator></font>
<asp:RegularExpressionValidator
ID="RegularExpressionValidator1" runat="server"
ControlToValidate="txt_marks"
ErrorMessage="Enter only Numbers"
ValidationExpression="[0-9]*"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td align="right" height="25">
<asp:Label ID="Label10" runat="server" ForeColor="Black"
Text="Year Passed :"></asp:Label></td>
<td colspan="2">
<asp:DropDownList ID="ddl_pass" runat="server"
TabIndex="11">
<asp:ListItem Text="----Select----"
Value="n"></asp:ListItem>
<asp:ListItem Text="1999"></asp:ListItem>
<asp:ListItem Text="2000"></asp:ListItem>
<asp:ListItem Text="2001"></asp:ListItem>
<asp:ListItem Text="2002"></asp:ListItem>
<asp:ListItem Text="2003"></asp:ListItem>
<asp:ListItem Text="2004"></asp:ListItem>
<asp:ListItem Text="2005"></asp:ListItem>
<asp:ListItem Text="2006"></asp:ListItem>
<asp:ListItem Text="2007"></asp:ListItem>
<asp:ListItem Text="2008"></asp:ListItem>
<asp:ListItem Text="2009"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="right" height="25">
<asp:Label ID="Label11" runat="server" ForeColor="Black"
Text="Post Applied :"></asp:Label>
</td>
<td colspan="2">
<asp:TextBox ID="txt_postapp" runat="server"
CausesValidation="True" MaxLength="30"
TabIndex="12" Width="230px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5"
runat="server" ControlToValidate="txt_postapp"
ErrorMessage="*"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" height="25">
<asp:Label ID="Label12" runat="server" ForeColor="Black"
Text="Experience :"></asp:Label></td>
<td colspan="2">
<asp:DropDownList ID="ddl_exp" runat="server"
TabIndex="13">
<asp:ListItem Text="----Select----"
Value="n"></asp:ListItem>
<asp:ListItem Text="Fresher"></asp:ListItem>
<asp:ListItem Text="1+"></asp:ListItem>
<asp:ListItem Text="2+"></asp:ListItem>
<asp:ListItem Text="3+"></asp:ListItem>
<asp:ListItem Text="4+"></asp:ListItem>
<asp:ListItem Text="5+"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
Newusr.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
System;
System.Data;
System.Configuration;
System.Collections;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Data.SqlClient;
if (i > 0)
{
int a = Convert.ToInt32(ViewState["sid"].ToString());
a = a + 1;
txt_cid.Text = a.ToString();
}
else
txt_cid.Text = "200901";
c.con.Close();
}
protected void Button1_Click(object sender, EventArgs e)
{
if (ddl_dte.Text == "----Date----")
{
Label9.Visible = true;
Label9.Text = "!!..Select user's DOB Date ..!!";
}
else
{
if (ddl_mon.Text == "----Month----")
{
Label9.Visible = true;
Label9.Text = "!!..Select user's DOB Month..!!";
}
else
{
if (ddl_dobyr.Text == "----Year----")
{
Label9.Visible = true;
Label9.Text = "!!..Select user's DOB Year..!!";
}
else
{
if (ddl_degree.Text == "----Select----")
{
Label9.Visible = true;
Label9.Text = "!!..Select user
course/degree..!!";
}
else
{
if (ddl_pass.Text == "----Select----")
{
Label9.Visible = true;
Label9.Text = "!!..Select user year
pass..!!";
}
else
{
if (ddl_exp.Text == "----Select----")
{
Label9.Visible = true;
Label9.Text = "!!..Select user
experience..!!";
}
else
{
try
{
string dob = ddl_dte.Text + "/" +
c.con.Open();
string str = "insert into
usr(u_id,u_pwd,u_name,u_dob,u_add,u_fname,u_degree,u_marks,u_yrpass,u_po
stapp,u_exp,u_sel,u_dttm,u_ccno) values(" + txt_cid.Text + ",'" +
txt_pass.Text + "','" + txt_cname.Text + "','" + dob + "','" +
txt_cadd.Text + "','" + txt_fname.Text + "','" + ddl_degree.Text + "','"
+ txt_marks.Text + "','" + ddl_pass.Text + "','" + txt_postapp.Text +
"','" + ddl_exp.Text + "','n','" + System.DateTime.Now.ToString() +
"','" + txt_ccno.Text + "')";
SqlCommand cmd = new SqlCommand(str,
c.con);
cmd.ExecuteNonQuery();
c.con.Close();
log();
Label9.Visible = true;
Label9.Text =
"!!..Hi.."+txt_cname .Text +", Your Account is successfully
created..!!";
txt_cid.Text = "";
txt_marks.Text = "";
txt_postapp.Text = "";
txt_cadd.Text = "";
txt_ccno.Text = "";
txt_cname.Text = "";
txt_fname.Text = "";
txt_pass.Text = "";
Button1.Enabled = false;
}
catch (Exception ex)
{
Label9.Visible = true;
Label9.Text = ex.Message;
}
}
}
}
}
}
}
}
public void log()
{
//string type = "s";
c.con.Open();
string str = "insert into login (uname,upass,utype) values('" +
txt_cid.Text + "','" + txt_pass.Text + "','u')";
SqlCommand cmd = new SqlCommand(str, c.con);
cmd.ExecuteNonQuery();
c.con.Close();
}
}
adedevent.aspx
<%@ Page Language="C#" MasterPageFile="~/Admin.master"
AutoEventWireup="true" CodeFile="adedevent.aspx.cs" Inherits="adedevent"
Title=":: Online Learning Portal ::" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<table id="Table1" align="center" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td align="center" style="height: 25px" valign="bottom">
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl="adadevent.aspx" Width="131px"><font color="white">Add New
Event</font></asp:HyperLink>| <asp:HyperLink ID="HyperLink2"
runat="server" NavigateUrl="adedevent.aspx"><font color="white">Edit
Event</font></asp:HyperLink>
</td>
</tr>
</table>
<hr size="2" style="color: black" width="100%" />
<br />
<font color="white">>> Edit Event Details</font><br />
<hr color="black" size="2" width="100%" />
<br />
<asp:Table ID="Table3" runat="server" CellPadding="1"
CellSpacing="1" GridLines="Both"
Height="35px" Width="100%">
<asp:TableRow ID="TableRow1" runat="server">
<asp:TableCell ID="TableCell1" runat="server"
BorderWidth="1px" HorizontalAlign="Center"
Text="ID" Width="7%"></asp:TableCell>
<asp:TableCell ID="TableCell2" runat="server"
BorderWidth="1px" HorizontalAlign="Center"
Text="Heading" Width="25%"></asp:TableCell>
<asp:TableCell ID="TableCell3" runat="server"
BorderWidth="1px" HorizontalAlign="Center"
Text="Description" Width="40%"></asp:TableCell>
<asp:TableCell ID="TableCell4" runat="server"
BorderWidth="1px" HorizontalAlign="Center"
Text="Date/Time" Width="10%"></asp:TableCell>
<asp:TableCell ID="TableCell5" runat="server"
BorderWidth="1px" HorizontalAlign="Center"
Text="Edit" Width="8%"></asp:TableCell>
<asp:TableCell ID="TableCell6" runat="server"
BorderWidth="1px" HorizontalAlign="Center"
Text="Delete" Width="10%"></asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:Content>
adedevent.aspx.cs
using System;
using
using
using
using
using
using
using
using
using
using
System.Data;
System.Configuration;
System.Collections;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Data.SqlClient;
=
=
=
=
dr1["ev_id"].ToString();
dr1["ev_head"].ToString();
dr1["ev_des"].ToString();
dr1["ev_dttm"].ToString();
c5.Controls.Add(h1);
c6.Controls.Add(h2);
R.Cells.Add(c1);
R.Cells.Add(c2);
R.Cells.Add(c3);
R.Cells.Add(c4);
R.Cells.Add(c5);
R.Cells.Add(c6);
c1.HorizontalAlign
c2.HorizontalAlign
c3.HorizontalAlign
c4.HorizontalAlign
c5.HorizontalAlign
c6.HorizontalAlign
=
=
=
=
=
=
HorizontalAlign.Center;
HorizontalAlign.Left;
HorizontalAlign.Left;
HorizontalAlign.Left;
HorizontalAlign.Center;
HorizontalAlign.Center;
Table3.Rows.Add(R);
i = i + 1;
}
c.con.Close();
adedevent.aspx
<%@ Page Language="C#" MasterPageFile="~/Admin.master"
AutoEventWireup="true" CodeFile="adedimage.aspx.cs" Inherits="adedimage"
Title=":: Online Learning Portal ::" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<table id="Table1" align="center" border="0" cellpadding="0"
cellspacing="0" width="50%">
<tr>
<td align="center" height="25" valign="bottom">
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl="adadalbum.aspx" Width="125px"><font color="white">Add/Edit
Album</font></asp:HyperLink>
| <asp:HyperLink ID="HyperLink2" runat="server"
NavigateUrl="adadimage.aspx"><font color="white">Add
Image</font></asp:HyperLink>
| <asp:HyperLink ID="HyperLink5" runat="server"
NavigateUrl="adedimage.aspx"><font color="white">Edit Image
Details</font></asp:HyperLink></td>
</tr>
</table>
<hr size="2" style="color: black" width="100%" />
<br />
<font color="white">>> Edit Image Details</font><br />
<hr color="black" size="2" width="100%" />
<br />
<asp:Table ID="Table3" runat="server" CellPadding="1"
CellSpacing="1" GridLines="Both"
Height="35px" Width="100%">
<asp:TableRow ID="TableRow1" runat="server">
adedevent.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
System;
System.Data;
System.Configuration;
System.Collections;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Data.SqlClient;
c.con.Open();
string str = "select * from event order by ev_id";
SqlCommand cmd = new SqlCommand(str, c.con);
SqlDataReader dr1 = cmd.ExecuteReader();
int i = 0;
while (dr1.Read())
{
TableRow R = new TableRow();
TableCell c1 = new TableCell();
TableCell c2 = new TableCell();
TableCell c3 = new TableCell();
TableCell c4 = new TableCell();
TableCell c5 = new TableCell();
TableCell c6 = new TableCell();
c1.Text
c2.Text
c3.Text
c4.Text
=
=
=
=
dr1["ev_id"].ToString();
dr1["ev_head"].ToString();
dr1["ev_des"].ToString();
dr1["ev_dttm"].ToString();
=
=
=
=
=
=
}
c.con.Close();
}
HorizontalAlign.Center;
HorizontalAlign.Left;
HorizontalAlign.Left;
HorizontalAlign.Left;
HorizontalAlign.Center;
HorizontalAlign.Center;
adedevent.aspx
<%@ Page Language="C#" MasterPageFile="~/Admin.master"
AutoEventWireup="true" CodeFile="adeditann.aspx.cs" Inherits="adeditann"
Title=":: Online Learning Portal ::" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<br />
<table border="0" width="100%">
<tr>
<td align="left" style="height: 18px">
<span style="color: #ffffff">>> Edit
Announcement Details </span>
</td>
<td align="right" style="height: 18px">
<asp:HyperLink ID="HyperLink1" runat="server"
ForeColor="White" NavigateUrl="~/adedann.aspx">Back</asp:HyperLink></td>
</tr>
<tr style="color: #000000">
<td align="left">
</td>
<td align="right">
</td>
</tr>
</table>
<hr color="black" size="2" style="color: #000000" width="100%" />
<br />
<table id="Table2" align="center" style="color: #000000">
<tr>
<td align="center" colspan="3" height="25">
<asp:Label ID="Label9" runat="server" Font-Bold="True"
ForeColor="Red" Visible="False"></asp:Label></td>
</tr>
<tr style="color: #ffffff">
<td align="right" height="25">
<asp:Label ID="Label1" runat="server" ForeColor="Black"
Text="Announcement ID :"></asp:Label></td>
<td colspan="2">
<asp:TextBox ID="txt_cid" runat="server"
ReadOnly="true" Width="93px"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right" style="height: 36px">
<asp:Label ID="Label3" runat="server"
Text="Heading :"></asp:Label>
</td>
<td colspan="2" style="height: 36px">
<asp:TextBox ID="txt_head" runat="server"
CausesValidation="True" Height="58px"
MaxLength="50" TabIndex="1" TextMode="MultiLine"
Width="230px"
ontextchanged="txt_head_TextChanged"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ControlToValidate="txt_head"
ErrorMessage="*"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" height="25">
<asp:Label ID="Label4" runat="server"
Text="Description :"></asp:Label>
</td>
<td colspan="2">
<asp:TextBox ID="txt_des" runat="server"
CausesValidation="True" Height="102px"
MaxLength="250" TabIndex="2" TextMode="MultiLine"
Width="230px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server" ControlToValidate="txt_des"
ErrorMessage="*"></asp:RequiredFieldValidator></td>
</tr><tr>
<td align="right" colspan="3" style="height: 14px"><font
color="red" size="1">* Mandatory Fields</font>
</td>
</tr>
<tr>
<td align="center" colspan="3" style="height: 24px">
<asp:Button ID="Button1" runat="server" CssClass="bttn"
Enabled="False" OnClick="Button1_Click"
TabIndex="3" Text="Update" />
</td>
</tr>
</table>
</asp:Content>
adedevent.aspx.cs
using System;
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.Data.SqlClient;
public partial class adeditann : System.Web.UI.Page
{
Connct c = new Connct();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["uid"] == null)
{
Response.Redirect("login.aspx?log=n");
}
if (!Page.IsPostBack)
{
if (Request.QueryString["annid"] != null)
{
Label9.Visible = true;
Label9.Text = "Announcement Details of ID " +
Request.QueryString["annid"].ToString() + " is successfully updated";
Button1.Enabled = false;
}
else
{
Button1.Enabled = true;
Label9.Visible = false;
insert();
}
}
}
public void insert()
{
c.con.Open();
ViewState["vs"] = Request.QueryString["anid"].ToString();
string str = "select * from announcement where ann_id=" +
ViewState["vs"].ToString() + "";
SqlCommand cmd = new SqlCommand(str, c.con);
SqlDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{
txt_cid.Text = dr["ann_id"].ToString();
txt_des.Text = dr["ann_des"].ToString();
txt_head.Text = dr["ann_head"].ToString();
}
dr.Close();
c.con.Close();
}
protected void Button1_Click(object sender, EventArgs e)
{
try
{
string dttm = System.DateTime.Now.ToString();
c.con.Open();
string str1 = "update announcement set ann_head='" +
txt_head.Text + "',ann_des='" + txt_des.Text + "', ann_dttm='" + dttm +
"' where ann_id=" + ViewState["vs"].ToString() + "";
SqlCommand cmd1 = new SqlCommand(str1, c.con);
cmd1.ExecuteNonQuery();
c.con.Close();
Response.Redirect("adeditann.aspx?annid=" +
ViewState["vs"].ToString());
}
catch (Exception ex)
{
Label9.Visible = true;
Label9.Text = ex.Message;
}
}
protected void txt_head_TextChanged(object sender, EventArgs e)
{
}
}
Uhome.aspx
<%@ Page Language="C#" MasterPageFile="~/usr.master"
AutoEventWireup="true" CodeFile="uhome.aspx.cs" Inherits="uhome"
Title=":: ONLINE RECRUITMENT SYSTEM ::" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
Hi <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>,
<br />
<br />
Welcome to your home page..!!
</asp:Content>
Uhome.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
System;
System.Data;
System.Configuration;
System.Collections;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Data.SqlClient;
c.con.Close();
string mail = Session["uname"].ToString();
Label1.Text = Convert.ToString(mail).ToUpperInvariant();
}
adedimage.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="adeditimage.aspx.cs"
Inherits="adeditimage" Title=":: Online Learning Portal ::" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<br />
<table border="0" width="100%">
<tr>
<td align="left">
<span style="color: #ffffff">>> Edit Image
Details </span>
</td>
<td align="right">
<asp:HyperLink ID="HyperLink1" runat="server"
ForeColor="White"
NavigateUrl="~/adedimage.aspx">Back</asp:HyperLink></td>
</tr>
</table>
<hr color="black" size="2" style="color: #000000" width="100%" />
<br />
<table align="center">
<tr>
<td align="center" colspan="2">
<asp:Label ID="Label5" runat="server" ForeColor="Red"
Visible="False"></asp:Label></td>
</tr>
<tr>
<td align="right">
<asp:Label ID="Label1" runat="server" Text="Image
ID :"></asp:Label></td>
<td align="left">
<asp:TextBox ID="txt_id" runat="server"
ReadOnly="True" Width="72px"></asp:TextBox></td>
</tr>
<tr>
<td align="right">
<asp:Label ID="Label3" runat="server"
Text="Album :"></asp:Label></td>
<td align="left">
<asp:DropDownList ID="ddl_album" runat="server"
TabIndex="1">
</asp:DropDownList></td>
</tr>
<tr style="color: #000000">
<td align="right">
adedimage.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
System;
System.Data;
System.Configuration;
System.Collections;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Data.SqlClient;
TableCell
TableCell
TableCell
TableCell
TableCell
c2
c3
c4
c5
c6
=
=
=
=
=
new
new
new
new
new
TableCell();
TableCell();
TableCell();
TableCell();
TableCell();
c1.Text = dr1["img_id"].ToString();
c2.Text = dr1["img_name"].ToString();
DropDownList1.SelectedValue = dr1["img_alname"].ToString();
c3.Text = DropDownList1.SelectedItem.Text;
System.Web.UI.WebControls.Image i1 = new Image();
i1.ImageUrl = "~/Attach/" + dr1["img_orgname"].ToString();
i1.Height = 100;
i1.Width = 150;
c4.Controls.Add(i1);
System.Web.UI.WebControls.HyperLink h1 = new HyperLink();
System.Web.UI.WebControls.HyperLink h2 = new HyperLink();
h1.NavigateUrl = "adeditimage.aspx?imgid=" + dr1["img_id"];
h1.Text = "Edit";
h2.Text = "Delete";
h2.Attributes.Add("onclick", "return confirm('Are You sure
you want to delete?');");
h2.NavigateUrl = "addelimage.aspx?imgid=" + dr1["img_id"];
c5.Controls.Add(h1);
c6.Controls.Add(h2);
R.Cells.Add(c1);
R.Cells.Add(c2);
R.Cells.Add(c3);
R.Cells.Add(c4);
R.Cells.Add(c5);
R.Cells.Add(c6);
c1.HorizontalAlign
c2.HorizontalAlign
c3.HorizontalAlign
c4.HorizontalAlign
c5.HorizontalAlign
c6.HorizontalAlign
=
=
=
=
=
=
HorizontalAlign.Center;
HorizontalAlign.Left;
HorizontalAlign.Left;
HorizontalAlign.Center;
HorizontalAlign.Center;
HorizontalAlign.Center;
Table3.Rows.Add(R);
i = i + 1;
}
c.con.Close();
Admin master
<%@ Master Language="C#" AutoEventWireup="true"
CodeFile="Admin.master.cs" Inherits="Admin" %>
Admin master.aspx.cs
using
using
using
using
using
using
using
using
using
using
System;
System.Data;
System.Configuration;
System.Collections;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
Web.config
<?xml version="1.0"?>
<!-Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<configSections>
<sectionGroup name="system.web.extensions"
type="System.Web.Configuration.SystemWebExtensionsSectionGroup,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting"
type="System.Web.Configuration.ScriptingSectionGroup,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler"
type="System.Web.Configuration.ScriptingScriptResourceHandlerSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices"
type="System.Web.Configuration.ScriptingWebServicesSectionGroup,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization"
type="System.Web.Configuration.ScriptingJsonSerializationSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="Everywhere"/>
<section name="profileService"
type="System.Web.Configuration.ScriptingProfileServiceSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
<section name="authenticationService"
type="System.Web.Configuration.ScriptingAuthenticationServiceSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
<section name="roleService"
type="System.Web.Configuration.ScriptingRoleServiceSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings/>
<connectionStrings>
<add name="ConnectionString" connectionString="Data
Source=.\SQLEXPRESS;AttachDbFilename=|
DataDirectory|\online.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<!-Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.DataSetExtensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<!--
-->
<customErrors mode="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI"
assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp"
namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd"
type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule"
type="System.Web.Handlers.ScriptModule, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs"
warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion"
value="v3.5"/>
value="false"/>
<providerOption name="WarnAsError"
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript"
extension=".vb" warningLevel="4"
type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion"
value="v3.5"/>
<providerOption name="OptionInfer"
value="true"/>
<providerOption name="WarnAsError"
value="false"/>
</compiler>
</compilers>
</system.codedom>
<!-The system.webServer section is required for running ASP.NET
AJAX under Internet
Information Services 7.0. It is not necessary for previous
version of IIS.
-->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ScriptModule"/>
<add name="ScriptModule" preCondition="managedHandler"
type="System.Web.Handlers.ScriptModule, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>
<add name="ScriptHandlerFactory" verb="*"
path="*.asmx" preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*"
path="*_AppService.axd" preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource"
preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd"
type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions"
publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0"
newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity
name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0"
newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
BIBLIOGRAPHY
WEB REFRENCES
BIBLIOGRAPHY
Web References
http://opensmpp.logica.com/introhtml/menu.htm
www.devshock.com
www.msdn.com
http://www.asp.net/
http://msdn.microsoft.com/netframework/windowsforms/
www.sas.com
www.bonrix.net