Posts

Image
Welcome, Students We are Shivrajians

ASP.NET (Read a text file)

1) default.aspx <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!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 runat="server">     <title>Read a text file</title> </head> <body>     <form id="form1" runat="server">     <div>             <asp:Button ID="Button1" runat="server"             Text="Display content of the text file" />         <br />         <br />         <asp:Button ID="Button2" runat="server"             Text="Display...

Username and Password Validation

<html> <head> <title>Username and Password Validation</title> </head> <body bgcolor=#ff9999> <hr size=10 color=brown> <font style="font-family:'Lucida Calligraphy'; font-size: 42px; background-color: #CCFF66;"> <marquee behavior=alternate scrollamount=5>Welcome</marquee> </font> <hr size=10 color=brown> <h2> <br> <form name=test> <font face="Segoe Print"> Enter Username :-</font>&nbsp; <input type=text name=un style="height: 30px; width: 145px; font-size: 18px;"> <br><br> <font face="Segoe Print"> Enter Password :-</font>&nbsp;&nbsp; <input type=password name=pass style="width: 145px; height: 30px; font-size: 18px;"> </h2> <br> <p> &nbsp;&nbsp;&nbsp;&nbsp; <input type=button name=sub value="Submit" onClick=subform();     style="w...

ASP.NET (Votes Counting or Votes Cast)

 1) default.aspx <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!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 runat="server">     <title>Votes Counting or Votes Cast</title> </head> <body bgcolor="#ccff99" text="#993300">     <form id="form1" runat="server">     <div>             <h2>Who is the Best Teacher in Science Faculty?</h2><br />         <br />         <asp:RadioButton ID="RB1" runat="server" GroupName="R" Text="SURUNGALE SIR" />         <br />         <br...

ASP.NET (Client side and Server side information)

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!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 runat="server">     <title>Client side and server side information</title> </head> <body>     <h1>Client side information is</h1>     <form id="form1" runat="server">     <div>     <script language =javascript >     var dt,d ,m,y,hr,min,sec,wk,mn,dy     dt=new Date     d=dt.getDate ()     m=dt.getMonth ()+1     y=dt.getFullYear ()     dy=dt.getDay()     document .write ("Current date is "+d+"/"+m+"/"+y+"<br>")     hr=dt.getHours...

ASP.net code to display a report of client IP address,browser information etc.

<html> <head> <title>ASP.net code to display a report of client IP address,browser information etc.</title> </head> <body> <p> <b>You are browsing this site with </b> < % response.write (request.servervariables("http_user_agent")) % > </p> <p> <b>IP address is </b> < % response.write (request.servervariables("remote_addr")) % > </p> <p> <b>The DNS lookup of IP address is </b> < % response.write (request.servervariables("remote_host")) % > </p> <p> <b>The method used to call the page is </b> < % response.write (request.servervariables("request_method")) % > </p> <p> <b>The server's code number is </b> < % response.write (request.servervariables("server_port")) % > </p> <p> <b>Server's domain name is </b> < % response.write (r...

ASP.NET (Calculate Birhdate)

1) default.aspx <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!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 runat="server">     <title>Calculate birthdate</title> </head> <body>     <form id="form1" runat="server">     <p>         Enter Your Name&nbsp;&nbsp;&nbsp;&nbsp;         <asp:TextBox ID="txt1" runat="server"></asp:TextBox>     </p>     <div>             Enter Your birthdate         <asp:TextBox ID="txt2" runat="server"></asp:TextBox>       ...

Fiboncci series

<html> <head> <title>Fiboncci series </title> </head> <body bgcolor=brown text=yellow> <h2 align=center> <script language=javascript>     var no1,no2,no3,i     no1=0     no2=1     document.write(no1)     document.write("<br>")     document.write(no2)     document.write("<br>")     i=3 while (i<=20) {     no3=no1+no2     document.write(no3)     no1=no2     no2=no3     i++     document.write("<br>") } </script> </h2> </body> </html>

Series

<html> <head> <title>Series</title> </head> <body bgcolor=black text=white> <script language=javascript>     var i,j document.write("<table border=5 width=1350 height=650>")     for(i=1;i<=10;i++) {     document.write("<tr>")     for(j=1;j<=30;j++)     {     document.write("<th>")     document.write(i*j)     document.write("</th>")     }     document.write("</tr>") } document.write("</table>") </script> </body> </html>

Prime Number

<html> <head> <title>Prime Number</title> </head> <body> <script language=javascript>     var no,i,r,cnt     cnt=0     no=parseInt(prompt("Enter a Number"))     for(i=2;i<=no-1;i++)     {     r=no%i     if(r==0)     {     cnt++     }     }     if(cnt>0)     {     alert("It is not a Prime Number")     }     else     {     alert("It is a Prime Number")     } </script> </body> </html>

Use of CSS without frames

1) style1.html <html> <head> <title>Style sheet 1 </title> <link rel=stylesheet type=text/css href=style1.css> </head> <body> <h1>India is my country</h1> <h2>India is my country</h2> <h3>India is my country</h3> <h4>India is my country</h4> <h5>India is my country</h5> </body> </html> style1.css <style type=text/css> <!-- body{background-color:black}; h1{color:blue; background-color:red;     text-decoration:line-through;     position:absolute;top:200px;left:400px;     font-family:"Comic Sans MS";     text-align:center}; h2{color:yellow;background-color:blue;     text-decoration:line-through;     position:absolute;top:120px;left:330px;     font-family:"Lucida Handwriting";     text-align:center}; h3{color:red;background-color:white;  ...

ASP.NET (Hit Counter)

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!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 runat="server">     <title>Hit Counter</title> </head> <body>     <form id="form1" runat="server">     <div>     <%  Application.Lock()         Application("counter") = Application("counter") + 1         Application.UnLock()         Response.Write("<h1 align=center>")         Response.Write("Total number of visits to the website are ")         Response.Write(Application("counter"))    ...

Online Admission Form

<html> <head> <title>Online Form </title> </head> <body bgcolor=orange> <hr size=10 color=green> <marquee behavior=alternate bgcolor=blue> <h1> <font face="comic sans ms" color=white>Online Admission Form</font> </h1> </marquee> <hr size=10 color=maroon> <h3> <form> Enter Your Name :- <input type=text name=nm size=35> <br><br> Your Address :- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <textarea> Tal - Dist - Kolhapur </textarea> <br><br> Email Address :- &nbsp;&nbsp;&nbsp;&nbsp; <input type=text name=ea size=40> <br><br> Contact No. :- &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <input type=text size=15 maxlength=13> <br><br> Select Category :- &nbsp;&nbsp; <select> <option>Open</option> <option>SC</option> <option>NT...

Calculator

<html> <head> <title>Calculator </title> </head> <body bgcolor=brown text=white> <center> <script language=javascript> function ad() { var no1,no2,rs no1=parseInt(n1.value) no2=parseInt(n2.value) rs=no1+no2 n3.value=rs } function sb() { var no1,no2,rs no1=parseInt(n1.value) no2=parseInt(n2.value) rs=no1-no2 n3.value=rs } function ml() { var no1,no2,rs no1=parseInt(n1.value) no2=parseInt(n2.value) rs=no1*no2 n3.value=rs } function dv() { var no1,no2,rs no1=parseInt(n1.value) no2=parseInt(n2.value) rs=no1/no2 n3.value=rs } function rm() { var no1,no2,rs no1=parseInt(n1.value) no2=parseInt(n2.value) rs=no1%no2 n3.value=rs } </script> <hr size=10 color=yellow> <table> <tr> <td><h2>Enter no 1 :-&nbsp; <td><input type=text name=n1 size=15> <td><h2>&nbsp;&nbsp;&nbsp;Enter no 2 :-&nbsp; <td><input type=text name=n2 size=15> </tr></table> <h...

Swapping with only two variables

<html> <head> <title>Swapping with only two variables </title> </head> <body bgcolor=yellow text=white> <script language=javascript> document.write("<center>") var no1,no2 no1=parseInt(prompt("Enter Number 1")) no2=parseInt(prompt("Enter Number 2")) document.write("<div style=background-color:brown;width:600px;height:400px>") document.write("<br>") document.write("<br>") document.write("<h1>"+"Before swapping"+"<br>") document.write("</h1>") document.write("<h2>") document.write("First number is "+no1+"<br>") document.write("<br>") document.write("Second number is "+no2+"<br>") document.write("</h2>") no1=no1+no2 no2=no1-no2 no1=no1-no2 document.write("<h1>"+"After swapping"+...

Greetings

<html> <head> <title>Greetings</title> </head> <body> <script language=javascript> var dt,h dt=new Date() alert("Todays date and time is "+dt) h=dt.getHours() alert("Current hours is "+h) if((h>=6)&&(h<12)) { alert("Good morning....!!!") } else if((h>12)&&(h<16)) { alert("Good afternoon....!!!") } else if((h>=16)&&(h<20)) { alert("Good evening....!!!") } else if((h>=20)&&(h<23)) { alert("Good night....!!!") } </script> </body> </html>

Colour Animation.

  Colour Animation using button <html> <head> <title>Colour Animation using button </title> <script language=javascript>     function f1() {     document.bgColor="red"     document.fgColor="aqua"     window.setTimeout("f2()",800) }     function f2() {     document.bgColor="violet"     document.fgColor="purple"     window.setTimeout("f3()",800) }     function f3() {     document.bgColor="purple"     document.fgColor="orange"     window.setTimeout("f4()",800) }     function f4() {     document.bgColor="orange"     document.fgColor="blue"     window.setTimeout("f5()",800) }     function f5() {     document.bgColor="hotpink"     document.fgColor="yellow"     w...

Event Driven Client Side Scripting.

frames.html <html> <head> <title>Event Driven Client side Scripting with frames</title> </head> <frameset rows="30%,50%,*"> <frame src="top.html"> <frameset cols="20%,80%"> <frame src="left.html"> <frame src="right.html"> </frameset> <frame src="bottom.html"> </frameset> </html> bottom.html  <html> <head> <title>bottom</title> </head> <body bgcolor="black"> <center> <b><font color=tan size=+7>Site created by <u><i>Pramod</i></u></font></b> </center> </body> </html> left.html  <html> <head> <title>left</title> </head> <body bgcolor=black> <center> <font color=indigo size=+7>This is a LEFT page</font> </center> </body> </html> right.html <html...

Ten Commandments of Computing.

These are ethics principles written in statements. Commandments of computing guides computer users and professional about do’s and don’ts. Thou shalt not use a computer to harm other people. Thou shalt not interfere with other people’s computer work. Thou shalt not snoop around the other people’s computer files. Thou shalt not use a computer for the purpose of steal. Thou shalt not use a computer to bear a false witness. Thou shalt not copy or use the software for which Thou has not paid. Thou shalt not use other people’s computer resources without authorization or   proper compensation. Thou shalt not copy or use other people’s intellectual output. Thou shalt think about the social consequence of the program on is writing or the system one is designing. Thou shalt always use a computer by means that show due considerations and due respect for one’s fellow humans.

Welcome

Image
Welcome to my blog....!!