Sie sind auf Seite 1von 15

Types of networks :

Org System1, system2 --System [ server] Interconnection of different systems Is called NETWORK.. The importance of network in sharing the resource Network can be classified into 3 types. LAN : Local Area network MAN : Metropolean Area Network. WAN : Wide Area Network. Network established with in small geographical area like[with in building is called LAN Network established with in range of 15 km is called MAN Network above man is called WAN. , The system may be connected between different countries Ex ; internet Internet : Network of networks is called Internet or network which is connected different other networks is called internt Internet provides any type of inforamatin and makes communication between people

Internet is a collection of websites Ex ; Gmail, orkut way2sms eclt A website is a collection of webpage, A webpage will provide some information to the user or it will take information from user A webpage can be classified into 2 tpes : 1. Static Webpage 2. Dynamic Webpage What is static Page ? The non-interactiv webpage with theuse is called static web page or Read only webpage Ex ;About us web bpage

Static page can be developed using HTM. The interactive page is called dynamic web page Ex : login page, registration page

Dynamic webpage can be developed using HTMl + Scripting (program)

Internet Technology is based on 4 things : 1. Html browser can understand HTML to present information to users 2. Client side Scripting : The logic executed by browser is called as client side scripting 3. Web server ; Web server is a software to manage web pages , this provides security to the web pages 4. Server side scripting: The logic executed with in web server is called server side scripting 5. There are different technologies available for server side

HTML [HyperText Mark up Langauge] HTML is a presentation Langauge Html is not case sensitive HTML is provided by w3c W3c provides all the internet standadrs for internet

HTML PROVIDES TWO THINGS 1. Tags 2. Entities

Tags : This allows formatting data for presenting to user Heading tags<h1><.h1> o Entities : <h2>..</h2>

This can be used to display special characters &reg; , &alt Structre of Webpage ; Static Webpage

<html><head> <script></script></head><body></body></html> Head tag will contain information required for internal purpose Body tag will contain information for present to user .

Creating static webpage using notepad <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT=""> </HEAD>

<BODY> <h1> Open solutions Profile</h1> <h2>Open solutions is poineed in emerging technologies , we offer Classroom training and online Training</h2>

</BODY> </HTML> Save as aboutus.html Webbrowser : web browser is a software with collection of services [html interpreter, xml parset, scripting lanauges interpreters] The mostly used browser is internet explorer goto to IE Runt the aboug.html in the present

Tags-- html interpreter-- presentation to user

Dynamic Web pages : The interactive web page is called dynamic webpage Print User inter)html control client side scripting(logic)

Dynamic webpage creation requires two things 1.User interface 2. Scripting

User interface can be created can be HTML input tags. Syntax : <input type = text/password.. name =>

Example <input type = text name =t1>


Scrippting:The programming with in webpage is called scripting The Logic executed by browser is called client side scripting The importance of client side scripting is reducing burden on web serer is accessing client side resources like printers There are different client scripting languages are available Ex : vb script, javascript Javascript is recommended for client side scitpting it is supported by different browsers Java scropt Java script is provided by sun micro Systems Ms-version of java script is called jscript It is case sensitive Structue of dynamic webapage with client side scripting Java script ,html> <head> <scrip language =java script>

Functions fun_name()) { ;; } ,/script> </head. <body> Calling the javascript with the help of user interface bewween butto, textbox] </body></html? Creating Dynamic web page Goto notepad <html> <head> <script> Function f1() { Windows.print() ] Function f2() { Windows.close()

} </script></head> <body> ,<input type =button name =b1 value =print onclick = f1()> <input type = button name =b2 value =close onclik =f2()> <h1> *Asp.net is provided by with following features :,.br> *session shrinking * chart control ,/h1>> </body> </html> Sace as print.html Windows print method can be used to display print dialogue box Windows.close method can beused to close he browser window onclick will maintain address of java script function this function will beexecuted when user clicks on button

Analyzing logic for emailed validation @gmail.com [texbox name = t1] S=t1.value

P1=s.indexof(@) Emailed required @ it should be a first character Email id does not support spaces Note : index of method will return index position of a chaacer if character Is not available it returns -1 Creating a dynamic wepage to validate email id format function f1() { s=t1.value; p1=s.indexof("@"); p2=s.indexof(" "); if(p1==0|| p1==-1||p2>=0||p2=1) { windows.alert("Invalid email id"); } } function f2() { window.print() } function f3() {

window.close()

} </script> </HEAD>

<BODY> <h1> Open solutions Profile</h1> <h2>Open solutions is poineed in emerging technologies , we offer Classroom training and online Training</h2>

Emai Id : <input type="text" name ="t1" Onblur="f1()"><br> password: <input type ="password" name ="t2">

click me <input type = "button" name = "b1" value ="print" onclick ="f1()"></input> </BODY> </HTML> Note : On blur wil maintain address of javascript function this will execute function when cursor is leaving he textbox. Windows.alert can be used to dispay message in the form of dialogue box

Requirement : Developing web page to a mnc copnay , this webpages should be accessible to different employees with in organization System[client1] systemserver

System[clicent2;

Aboutus htm

In the above ccase, web page location will be exposed to clients, this leads to security problems The solutions is to provide web software

Web server : English

Cabin1
Custore English server

Cabin 2

Browser

webserver

webpages

Web sever isa software to manage webpages. This provides security to webpages Websever will accept HTTp rqu and provides HTTp response Hence it is called HTTP server Protocaols is a set of urle, the set of rules accepted by browser webserver for communication is called HyperText transfer protocol (HTTP) There are several webservers available from different companies Ex ; Apache, java, tomcat , IIS

ASP.net required IIS5.0 or later towards windows os Asp.net Required Apahce webserver towards linus os

Installing IIS with windows XP System requrieds windows x or with service pack 3 tospards .net 4.0 [asp.net 4.0 Goto control panel Select add./remove program Select add/remove windows components Select internet information service Click on next button [place xp cd into dricve before click on the next button

Verifity IIS installation http: localhost or http : systemname

Website : IIS installation comes with default-website this website will maintain webpaew with in c;\inetput\wwwroot Microsoft is provided internet sercice manager tool[netimgr.exe to view IIS info Goto start-run and tpe inetmgr Expand roo note, then expand website nodes , it will idpslay default website

Right click on default website & select properties Select home directory tab in this Local path c:\inetpub\wwwroot Creating a webpage into default website

AsP
Asp [active server pages] Asp is a technology provided with webserver IIS to support server side code execution Asp provides scripting languages for server side programming vbscript , java scropt When a cliet requriest comes to asp.page web serer will forward requiest to asp.dll , asp.dll will execute server side login and output will be produced to client browser Drawbacks of ASP ; Performance problem asp can not maintain compiled code asp page where scripting language are interpreter based languages This requires syntax checking towards each reqruies, this wkl lead to performance problem Browser 1 Browser 2 3. More complexibility and ro readability 4. Asp supports placing design part code and logi part code onto one file, this leads to compeity and no readability 5. No server side controls 6. Asp does not support control accessibility with in server side programming 7. No built in security support 8. The solution with .net is asp.net loginpage

ASP.NET (ACTIVE SERVER PAGES FOR .net0 Asp.bet is aserver side technology provided with .net for serer side code execution Creating a dynamic webpage on server side programming Aspentis providing .net language for server side programming Ex. Vb.net, c# Asp.net = .net language + collectin of objects Asp.nbet is provide collection of objects called :asp.net intrisinic objects Ex : respons , request,session ,application server Asp.net object will be created on server automatically i t is called intrinsic objects Features of Asp.net 1. Better performance : 2. Asp.net supports maintaining complete code for asp.net webpage, this will reduce processin brder on we server 9syntax checking this provides better performance

Browser 1 Browser2

webserver asp.net page ;;; Compiled code(dll) (1000 reques)

More readability and no complexity Asp.net supports placing design part code and login partocde into separate files by providen code behind technique for web page creating , this provides more readability Providing server side controls Asp.net is providing set of controls which can be used with in server side programming . this control are called websever controls , ths makes developer job easier

Builtin security support ; Asp.net is providing HTTp modules for built in sercity support Windows based authienticaiton Forms based authinication Enhance ment to state management and caching Setup creation support Asp.net supports setup creatin for websites , this makes deploement easier [deployement means takes the files from development system to actual server) Web service support: Web services can be used to devlop business logic to mainti with webserver. This business logig will be accessibale to any language application running on any platform [webservies supports cross language or cross platform integration] AJAX supports Rich internet application development withthehelp of silverlight Support MVC based web application developemtn ASP.NET VERSION Asp.net2.0 Theme,skings Masterpage Membership,webpart Weparts Sitenaviagation asp.net 3.5 new controls linq AJAX asp.net 4.0 session shirking chart control url routing \MVC silverlight

Recently asp.net 4.5 developer is realsed is provided by Microsoft this can be considered as Beeta releaset

MVC : mvc allows splitting applicaitn into 3 parts MODEL VIEW CONTROLER The adavantage of MVC is parallel developemtn and testing will be easier

Das könnte Ihnen auch gefallen