Você está na página 1de 17

A term paper Of Web Programming (CAP 305)

Website Of

On

Online Telephone Directory

Submitted to Lovely Professional University, Phagwara For partial fulfillment of the required award of MCA (Master in Computer Application) Session 2009-2012

Supervised By Prof. Rishi Chopra Faculty Lovely Professional University

Submitted By Name- Vikas Lalotra Roll No. RTB903A17 Reg No. - 10901758

Acknowledgement

If practical knowledge carves and sharps the carrier of a person, practical experience polishes it and adds luster and brilliance to it. Here, we found this golden chance to acknowledge all those people who had blessed, encouraged and supported us technically and morally through all the phases of our term paper. We take this opportunity to express our profound sense of gratitude. We thank all mighty God for giving us this valuable opportunity to express to all those who helped in successful completion of this term paper. We reserve heartiest gratitude to Mr. Balraj Kumar HOD who has been very supportive and encouraging throughout this term paper. He guides us for having given us an opportunity to undertake the term paper and providing us with feedback and influenced the development of this term paper. We gratefully acknowledge invaluable note of our term paper guide M and to all teachers who besides helping us in the term paper, guided and encouraged us along each step. We express heartfelt thanks to our friends for their morale and support and Kind Corporation during this course of formulation o this project work. Last but not least, my sincere regards are reserved for our family and friends who have always encouraged and blessed us with their best.

Vikas Lalotra

Certificate

Term Paper No.: Course Instructor: Date of Allotment: Students Roll No: Declaration:

1 Prof. Rishi Chopra 3rd Sept,2010 RTB903A17

Course Code: Course Tutor:

CAP305

Date of Submission: 10th Nov,2010 Section No.: TB903

I declare that this assignment is my individual work. I have not copied from any other students work or from any other source except where due to acknowledgement is made explicitly in the text, nor has any part been written for me by another person.

Students Signature:

Vikas Lalotra

Evaluators Comments: __________________________________________________________________ Marks Obtained: out of______________________________________

Introduction of HTML
HTML, which stands for HyperText Markup Language, is the predominant markup language for web pages. It is written in the form of HTML elements consisting of "tags" surrounded by angle brackets within the web page content. It is the building blocks of all basic websites. It allows images and objects to be embedded and can be used to create interactive forms. It provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes and other items. It can embed scripts in languages such as JavaScript which affect the behavior of HTML webpage. HTML can also be used to include Cascading Style Sheets (CSS) to define the appearance and layout of text and other material. The W3C, maintainer of both HTML and CSS standards, encourages the use of CSS over explicit presentational markup.

Introduction of JAVA SCRIPT


JavaScript is an implementation of the ECMA Script language standard and is typically used to enable programmatic access to computational objects within a host environment. It can be characterized as a prototype-based scripting language that is dynamic, weakly typed and has first-class functions. It is also considered a functional programming language like Scheme and because it has closures and supports higher-order functions. JavaScript is primarily used in the form of client-side JavaScript, implemented as part of a web browser in order to provide enhanced user interfaces and dynamic websites. However, its use in applications outside web pages is also significant. JavaScript uses syntax influenced by that of C syntax, also JavaScript copies many Java programming language names and naming conventions; but the two languages are otherwise unrelated and have very different semantics. The key design principles within JavaScript are taken from the Self and Scheme programming languages.

Introduction of ASP.NET
ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Server Pages (ASP) technology. ASP.NET is built on the Common Language Runtime (CLR), allowing programmers to write ASP.NET code using any supported .NET language. The ASP.NET SOAP extension framework allows ASP.NET components to process SOAP

messages.

Introduction of website
A telephone directory (also called a telephone book and phone book) is a listing of telephone subscribers in a geographical area or subscribers to services provided by the organization that publishes the directory. Subscriber names are generally listed in alphabetical order, together with their postal or street address and telephone number With a cell phone directory reverse lookup you can find out information about any number that's been calling you, including the owner's name and address.

Home Page
<html> <head> <title>MAIN PAGE</title> </head> <frameset rows="24%,76%"> <frame src="image.html" name="first"> <frameset cols="15%,65%,20%"> <frame src="index.html" name="second"> <frame src="target.html" name="third"> <frame src="image1.html" name="fourth"> </frameset> </frameset> </html>

Index Page
<html> <head> <title>link page</title> <style type="text/css"> h1{font-family:arial;font-size:18} </style> </head> <body bgcolor=#aeaeaa alink="white" vlink="white" link="white"> <div style="position:absolute;left:0px;top:0px;"> <img src="image\telephone3.jpg" height=220 width=190> </div> <br><br>

<div style="position:absolute;left:20px;top:220px"> <a href="target.html" target="third"><h1>Home</a><br><br> <a href="city.html" target="third">Search City Wise</a><br><br> <a href="stdcode.html" link="white" target="third">Search STD Code</a><br><br> <a href="c.html" target="third">Search ISD code</h1></a><br><br> </div> </body> </html>

City Page
<html> <head> <title>city wise</title> </head> <body link=blue alink=blue vlink=blue> <h1 align=center>Names of Punjab States</h1> <hr size=3 width=80% align=center color=#aeaeaa><br> <div style="position:absolute;left:120px;top:73px"> <a href="asr.html">AMRITSAR</a><br><br> <a href="bht.html">BHATINDA</a><br><br> <a href="chd.html">CHANDIGARH</a><br><br> <a href="frz.html">FEROZEPUR</a><br><br> <a href="hos.html">HOSHIARPUR</a><br><br> <a href="jld.html">JALANDHAR</a><br><br> <a href="ldh.html">LUDHINA</a><br><br>

<a href="pth.html">PATHANKOT</a><br><br> <a href="rpr.html">ROPAR</a><br><br> <a href="sng.html">SANGRUR</a> </div> </body> </html>

Amritsar Search Form


<html> <head> <title>amritsar city</title> <style type="text/css"> h2{font-family:arial;font-size:15;font-weight:normal} </style> <script language="JavaScript"> function form1_onsubmit()

{ with(document.form1) { if(test.value=="") { alert("Please fill the value according to select radio button"); return false; } } return true; } </script> </head> <body alink=white vlink=white link=white> <div style="position:absolute;left:120px;top:10px;"> <h1 align=center>Telephone Directory Of Amritsar</h1> <hr size=3 width=600px align=center color=#aeaeaa><br><br> </div> <div style="position:absolute;left:120px;top:150px;"> <form name="form1" method="post" onsubmit="Javascript:return(form1_onsubmit());"><h2> <h2> Search by &nbsp;&nbsp;&nbsp;<input type="radio" name="asr">&nbsp;Name&nbsp;&nbsp;&nbsp; <input type="radio" name="asr">&nbsp;Address&nbsp;&nbsp;&nbsp; <input type="radio" name="asr">&nbsp;Telephone Number<br><br>

Enter Name/Address/Telephone Number&nbsp;&nbsp;<input type="text" name="test" size=20 maxsize=50>&nbsp;&nbsp; key Position&nbsp;&nbsp;<select name=key> <option>Starting With</option> <option>End</option> <option>Exactly</option> <option>Any where</option> </select><br><br> Select Station&nbsp;&nbsp;<select name=namebox> <option>All</option> <option>Amritsar</option> <option>Ajnala</option> <option>Patti</option> <option>Rayya</option> <option>Tarntaran</option> </select><br><br><br></div> <div style="position:absolute;left:260px;top:280px;"> <input type="submit" value=Search>&nbsp;&nbsp;&nbsp; <input type="reset" value=Reset></div> </form> <div style="position:absolute;top:330px;left:360px;"> <a href="city.html"><img src="image\next.jpg" height=50 width=50></a>&nbsp;&nbsp;&nbsp; <a href="city.html"><img src="image\back.jpg" height=50 width=50></a> </div> </body>

</html>

STD Coding
<html> <head> <title>std code</title> <style type="text/css"> h2{font-family:arial;font-size:15;font-weight:normal} </style> <script language="JavaScript"> function form2_onsubmit() { with(document.form2) { if(test1.value=="") { alert("Please fill the value according to select radio button"); return false; } }

return true; }

</script>

</head> <body> <div style="position:absolute;left:200px;top:10px;"> <h1 align=center>STD Code</h1> <hr size=3 width=400px align=center color=#aeaeaa><br><br> </div> <div style="position:absolute;left:580px;top:130px;"> <a href="allcode.html"><font size=4 backgroundcolor=black color=red>View all city code</font></a> </div> <div style="position:absolute;left:120px;top:150px;"> <form name="form2" method="post" onsubmit="Javascript:return(form2_onsubmit());"><h2> Search by &nbsp;&nbsp;&nbsp;<input type="radio" name="asr1" select>&nbsp;City Name&nbsp;&nbsp;&nbsp; <input type="radio" name="asr">&nbsp;City Code&nbsp;&nbsp;<br><br> Enter City Name/Code&nbsp;&nbsp;<input type="text" name="test1" size=20 maxsize=50>&nbsp;&nbsp; key Position&nbsp;&nbsp;<select name=key> <option>Starting With</option> <option>End</option> <option>Exactly</option>

<option>Any where</option> </select><br> <p>(Please don't enter zero in started code) <div style="position:absolute;left:260px;top:120px;"> <input type="submit" value="Search">&nbsp;&nbsp;&nbsp; <input type="reset" value="Reset"> </form> </div> </body> </html>

Connectivity with Database(std code) <html> <head> <title>Database</title> </head> <body> <% set conn=server.createobject("ADODB.connection") conn.Provider="MIcrosoft.Jet.OLEDB.4.0" conn.open="c:\inetpub\wwwroot\state.mdb" set rs=server.createobject("ADODB.recordset") rs.open"select * from code",conn do until rs.EOF response.write("<table border=1 cellpadding=1 cellspacing=1>") response.write("<tr>") for each x in rs.fields response.write("<td>") response.write(x.value) response.write("</td>")

next rs.movenext

response.write("</tr>") loop response.write("</table>") rs.close conn.close %> </body> </html>

Connectivity with Database(isd code) <html> <head> <title>Database</title> </head> <body> <% set conn=server.createobject("ADODB.connection") conn.Provider="MIcrosoft.Jet.OLEDB.4.0" conn.open="c:\inetpub\wwwroot\isd.mdb" set rs=server.createobject("ADODB.recordset") rs.open"select * from code",conn do until rs.EOF response.write("<table border=1 cellpadding=1 cellspacing=1>") response.write("<tr>") for each x in rs.fields response.write("<td>") response.write(x.value) response.write("</td>")

next rs.movenext response.write("</tr>") loop

response.write("</table>") rs.close conn.close %> </body> </html>

Você também pode gostar