Article archive
Throws
23/11/2009 17:17
/*******************************************************************
Program name:Write a java program to demonstrating throws
Roll no:12
*******************************************************************/
class Demothrows
{
static void throwmeth()throws...
>>
———
Thread Priority
23/11/2009 17:16
class Demo implements Runnable
{
int i=0;
Thread t;
private volatile boolean running=true;
public Demo(int p)
{
t=new Thread(this);
t.setPriority(p);
}
public void run()
{
while(running)
i++;
}
public void stop()
{
running=false;
}
public void start()
{
t.start();
}
}
class...
>>
———
String Concatenated
08/10/2009 02:09
<html>
<head>
<title>String Concatenated</title>
</head>
<body>
<!Write a javascript program for string concatenated>
<! Roll no=01>
<h1 align="center">Working with string</h1>
<hr>
<script language="javascript">
var...
>>
———
Addition javaScript
08/10/2009 02:08
<html>
<body>
<!Write javascript program to enter any number and print the number using prompt>
<! Roll no=8>
<script language="javascript" >
var num1,num2,total;
num1=parseInt(prompt("Enter number1",""));
num2=parseInt(prompt("Enter...
>>
———
Name Display2
08/10/2009 02:07
<%@ language="vbscript" %>
<% Option Explicit %>
<%
dim nmarr(3),i
nmarr(0)=Request("name1")
nmarr(1)=Request("name2")
nmarr(2)=Request("name3")
nmarr(3)=Request("name4")
%>
<html>
<body>
Personal Information
<br>
Name:
<%...
>>
———
Session
08/10/2009 02:07
<% @ language="vbscript" %>
<%' Roll no=1 %>
<html>
<body>
<%
session("Username")="xyz"
session("Age")=21
session("Habit")="Reading" %>
<%
Response.write("UserName="&session("username")) ...
>>
———
Name Display
08/10/2009 02:05
<%@ language="vbscript" %>
<% Option Explicit %>
<%
dim nmarr(3),i
nmarr(0)=Request("name1")
nmarr(1)=Request("name2")
nmarr(2)=Request("name3")
nmarr(3)=Request("name4")
%>
<html>
<body>
Personal Information
<br>
Name:
<%...
>>
———
Form processing
08/10/2009 02:05
<html>
<head>
<title>Form processing</title>
<script language="JavaScript">
function func1()
{ var cnt1,cnt2;
cnt1=0;
cnt2=0;
alert("welcome")
if(document.myform1.text1.value=="")
{
alert("Username field cannot be...
>>
———
Simple ADO Query
08/10/2009 02:04
<%@ LANGUAGE = VBScript %>
<% Option Explicit %>
<HTML>
<HEAD>
<TITLE>Simple ADO Query</TITLE>
</HEAD>
<BODY >
<%
Dim...
>>
———
Background colors and status bar message
08/10/2009 01:59
<html>
<head>
<title>Background colors and status bar message</title>
<script language="javascript">
function func1()
{
document.bgColor="#FF0000"
window.status="Red color"
}
function func2()
{
document.bgcolor="#00FF00"
window.status="Green...
>>