Operating System : Windows 9x/NT/2000/XP
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. Though Maintenance is not a part of software development, it is an extremely important activity in the life of a software product.
Maintenance involves understanding the existing software (code and related documents), understanding the effects of change, making the changes-to both the code and documents-testing the new parts and retesting the old part. For successful and smooth running of the system, maintenance is the prominent part of the project.
Any error, which hinders the functioning of any part of the project, may lead to bad impression of the developer.
There are majorly two types of errors: Compilation error and Runtime errors.
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.
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
the records made by previous batches of students.</p>
<p align="justify">
Students will participate in group activities such as discussion forums, events,
articles. Students can poll only once at a time. Students can also see the images
uploaded by administrator in the particular album.<br />
</p><p align="justify">
There is School Report also, which is easily open or downloaded by any guest, student
& teacher. This school report tells us about the result of examination held
in previous semester.</br></br></p>
</td>
<td width="25%" style ="border-left-color :Black; border :1"
valign="top">
<table align="center" bordercolor="black" border ="1" cellpadding ="0"
cellspacing ="0"> <tr><td align="left">
<table style="width: 230px">
<tr><td colspan="2" height="20" align="center"><asp:Label
ID="Label3" ForeColor ="white" runat="server"
Text="Login"></asp:Label></td></tr>
<tr><td height="20" colspan="2" align="center"><asp:Label
ID="Label1" ForeColor ="red" runat="server" 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><td height="25" style="width:
192px"> <asp:TextBox ID="txt_id" runat="server" Style="position: static" TabIndex="1" Width="94px"/>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ControlToValidate="txt_id"
ErrorMessage="*"></asp:RequiredFieldValidator></td></tr> <tr><td height="25" align="right"><asp:Label ID="Label4"
runat="server">Password :</asp:Label></td><td height="25" style="width: 192px"> <asp:TextBox ID="txt_pwd" runat="server"
TextMode="Password" TabIndex="2" Width="94px"/>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server" ControlToValidate="txt_pwd"
ErrorMessage="*"></asp:RequiredFieldValidator></td></tr>
<tr><td height="25" align="right"><asp:Label ID="Label5"
runat="server" Width="89px">Login Type :</asp:Label></td><td height="25"
style="width: 192px"> <asp:DropDownList ID="DropDownList1"
runat="server" TabIndex="3">
<asp:ListItem Text ="----Select----" Value
="n"></asp:ListItem>
<asp:ListItem Text ="Administrator" Value
="a"></asp:ListItem>
<asp:ListItem Text ="Student" Value ="s"></asp:ListItem>
<asp:ListItem Text ="Teacher" Value ="t"></asp:ListItem>
</asp:DropDownList></td></tr> <tr><td colspan ="2" align="center" height="25"><asp:Button
Width="72px" OnClick="Button1_Click" TabIndex="5" CssClass="bttn" /></td></tr>
</table> </td>
</tr>
<tr><td colspan ="2" align="center" ><asp:Calendar ID="Calendar1"
runat="server">
<TodayDayStyle BackColor="White" />
</asp:Calendar></td></tr> </table> </td> </tr> </table> </asp:Content> Home.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 home : System.Web.UI.Page
{
Connct c = new Connct();
protected void Page_Load(object sender, EventArgs e)
{ if (!Page.IsPostBack) { Label1.Visible = false; } }
protected void Button1_Click(object sender, EventArgs e)
{
if (DropDownList1.Text == "n") {
Label1.Visible = true;
Label1.Text = "Select Login Type"; }
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(); } } }
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"
<td height="25" style="width: 192px">
<asp:TextBox ID="txt_id" runat="server"
Style="position: static" TabIndex="1"
Width="125px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ControlToValidate="txt_id"
ErrorMessage="*"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" height="25">
<asp:Label ID="Label4"
runat="server">Password :</asp:Label></td>
<td height="25" style="width: 192px">
<asp:TextBox ID="txt_pwd" runat="server"
TabIndex="2" TextMode="Password" Width="125px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server" ControlToValidate="txt_pwd"
ErrorMessage="*"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" height="25">
<asp:Label ID="Label5" runat="server"
Width="89px">Login Type :</asp:Label></td>
<td height="25" style="width: 192px">
<asp:DropDownList ID="DropDownList1"
runat="server" TabIndex="3">
<asp:ListItem Text="----Select----"
Value="n"></asp:ListItem>
<asp:ListItem Text="Administrator"
Value="a"></asp:ListItem>
<asp:ListItem Text="Student"
Value="s"></asp:ListItem>
<asp:ListItem Text="Teacher"
Value="t"></asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td align="center" colspan="2" height="25">
<asp:Button ID="Button1" runat="server" CssClass="bttn"
OnClick="Button1_Click" Style="position: static"
TabIndex="5" Text="Enter" Width="72px" /></td>
</tr> </table> </asp:Content>
login.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 login : System.Web.UI.Page
{
Connct c = new Connct();
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["log"] == "n") {
Label1.Visible = true;
Label1.Text = "Please Login to your A/C<BR> or<BR> Your Session has expired";
} }
protected void Button1_Click(object sender, EventArgs e)
{
if (DropDownList1.Text == "n") {
Label1.Visible = true;
Label1.Text = "Select Login Type"; }
else
{
c.con.Open();
string str = "select * from login where utype='" + DropDownList1.SelectedValue + "'";
// c.con.Open();
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("newtopic.aspx"); }
if (DropDownList1.SelectedValue == "t") {
Session["uid"] = txt_id.Text; Session["tech"] = "teacher";
Response.Redirect("newtopic.aspx"); }
} else
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>
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
the records made by previous batches of students.</p>
<p align="justify">
Students will participate in group activities such as discussion forums, events,
articles. Students can poll only once at a time. Students can also see the images
uploaded by administrator in the particular album.<br />
</p><p align="justify">
There is School Report also, which is easily open or downloaded by any guest, student
& teacher. This school report tells us about the result of examination held
in previous semester.</br></br></p>
</td>
<td width="25%" style ="border-left-color :Black; border :1"
valign="top">
<table align="center" bordercolor="black" border ="1" cellpadding ="0"
cellspacing ="0"> <tr><td align="left">
<table style="width: 230px">
<tr><td colspan="2" height="20" align="center"><asp:Label
ID="Label3" ForeColor ="white" runat="server"
Text="Login"></asp:Label></td></tr>
<tr><td height="20" colspan="2" align="center"><asp:Label
ID="Label1" ForeColor ="red" runat="server" 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><td height="25" style="width:
192px"> <asp:TextBox ID="txt_id" runat="server" Style="position: static" TabIndex="1" Width="94px"/>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ControlToValidate="txt_id"
ErrorMessage="*"></asp:RequiredFieldValidator></td></tr> <tr><td height="25" align="right"><asp:Label ID="Label4"
runat="server">Password :</asp:Label></td><td height="25" style="width: 192px"> <asp:TextBox ID="txt_pwd" runat="server"
TextMode="Password" TabIndex="2" Width="94px"/>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server" ControlToValidate="txt_pwd"
ErrorMessage="*"></asp:RequiredFieldValidator></td></tr>
<tr><td height="25" align="right"><asp:Label ID="Label5"
runat="server" Width="89px">Login Type :</asp:Label></td><td height="25"
style="width: 192px"> <asp:DropDownList ID="DropDownList1"
runat="server" TabIndex="3">
<asp:ListItem Text ="----Select----" Value
<asp:ListItem Text ="Administrator" Value
="a"></asp:ListItem>
<asp:ListItem Text ="Student" Value ="s"></asp:ListItem>
<asp:ListItem Text ="Teacher" Value ="t"></asp:ListItem>
</asp:DropDownList></td></tr> <tr><td colspan ="2" align="center" height="25"><asp:Button
ID="Button1" runat="server" Style="position: static" Text="Enter"
Width="72px" OnClick="Button1_Click" TabIndex="5" CssClass="bttn" /></td></tr>
</table> </td>
</tr>
<tr><td colspan ="2" align="center" ><asp:Calendar ID="Calendar1"
runat="server">
<TodayDayStyle BackColor="White" />
</asp:Calendar></td></tr> </table> </td> </tr> </table> </asp:Content>
home.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 home : System.Web.UI.Page
{
Connct c = new Connct();
protected void Page_Load(object sender, EventArgs e)
{ if (!Page.IsPostBack) { Label1.Visible = false; } }
protected void Button1_Click(object sender, EventArgs e)
{
if (DropDownList1.Text == "n") {
Label1.Visible = true;
Label1.Text = "Select Login Type"; }
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
|
<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">