MOHAMED SATHAK COLLEGE OF ARTS AND SCIENCE
(Affiliated to the University of Madras)
Sholinganallur, Chennai-600 119.
DEPARTMENT OF COMPUTER SCIENCE
BCA (Computer Science)
Web Technology
Sixth Semester
(2010-2011)
Name : V.SATHISH KUMAR
Roll No : 08BCA19
Register No : PK80553
MOHAMED SATHAK COLLEGE OF ARTS AND SCIENCE
(Affiliated to the University of Madras)
Sholinganallur, Chennai – 600 119.
DEPARTMENT OF COMPUTER SCIENCE
BONAFIDE CERTIFICATE
Register No. : PK80553
Certified to be the record work done by Mr. / Ms. V.SATHISH KUMAR during the Sixth Semester of BCA, (Computer Science) degree course in the academic year 2010-2011 at Department of Computer Science , submitted for the
practical examination held on _______________________.
Head Of The Department Lecturer In-charge
Internal Examiner External Examiner
INDEX
S.NO DATE TITLE OF THE PROGRAMS PAGE
No SIGN
1. Square Root 2. Cube Root 3. Calculator 4. Hit Counter 5. Scroll the Text on Status Bar 6. Digital Clock 7. On Mouse Over and On Mouse Event,
On Dbclick Handler 8.
Valid or Invalid E-mail Address 9. Frameset 10. Database Creation For Retrieving
Student details 11. Database Creation For Storing
Employee details 12. Add a Link to Moves the Mouse Over
to Load the Linked Document 13. Open a new Window Without a Tool bar, Status bar
Create a Square Root using JavaScript.
SQUARE ROOT USING JAVASCRIPT
OUTPUT
Create a Cube Root using JavaScript.
CUBE ROOT USING JAVASCRIPT
OUTPUT
Create a calculator using JavaScript.
Calculator
OUTPUT
Create a program to generate a hit counter using JavaScript.
OUTPUT
5. Write a program to scroll the text on status bar using JavaScript
OUTPUT
Write a script to create a Digital Clock using JavaScript.
TIME
OUTPUT
Create a webpage using two image file which switch black and white one another as the mouse pointer move over the image. Use the On Mouse over and On Mouse event.
Javascript Change Image Onmouseover
OUTPUT
Create a program to verify whether email address provided by user is valid or invalid.
OUTPUT
Create a Frameset that has two frames, side by side.
Frame.html
FRAME SET PROGRAMS
Menu.html
FRAMES
RED
GREEN
Red.html
HELLO WELCOME TO OUR HEAVEN;
HAI WE ARE TOGETHER WITH US;
WE WILL ACHIVE ALL THE THINGS IN THE WORLD;
BY
III BSC COMPUTER SCIENCE (DAY & EVENING)
Green.html
HELLO WELCOME TO OUR HEAVEN;
HAI WE ARE TOGETHER WITH US;
WE WILL ACHIVE ALL THE THINGS IN THE WORLD;
BY
III BCA COMPUTER APPLICATIONS (DAY & EVENING)
OUTPUT
Create an
Asp.Net page to display the records one by one from a student database. The student database should contain roll no, name, marks & total.
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.OleDb;
public partial class Default3 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
DataSet ds;
OleDbConnection con;
OleDbDataAdapter adp;
con = new OleDbConnection("Provider = Microsoft.Jet.OLEDB.4.0; Data Source = C:\\db2.mdb");
con.Open();
string query = "select * from Students where RegNo='"+TextBox1.Text+"'";
adp = new OleDbDataAdapter(query, con);
ds = new DataSet();
adp.Fill(ds, "Students");
GridView1.DataSource = ds.Tables["Students"];
GridView1.DataBind();
con.Close();
}
}
OUTPUT
Create an Employee database and manipulate the records using command object in Asp.net.
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.OleDb;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
OleDbConnection con;
OleDbCommand comm;
con = new OleDbConnection("Provider = Microsoft.Jet.OLEDB.4.0; Data Source = C:\\db2.mdb");
con.Open();
string query = "insert into EmpDetails values('"+Textbox1.Text+"','"+Textbox2.Text+"','"+Textbox3.Text+"','"+Textbox4.Text+"')";
comm = new OleDbCommand(query,con);
comm.ExecuteNonQuery();
con.Close();
}
}
OUTPUT
Create a document and add a link to it. When the user moves the mouse over the link it should load the linked document on its own.
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
LinkButton1.Attributes.Add("onmouseover","window.location='http://localhost:1282/sessiontimeout/Default2.aspx';return true;");
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
}
}
OUTPUT
Create a document which opens a new window without a toolbar, address bar, or a status bar.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>
Untitled Page
OUTPUT