Unit 5
Unit 5
Creating interactive applications using active server pages : client and server side script in C#,
Assignment 5
1) Explain the active server page and the uses of active server page technology in web design
2) How Active Server Pages Work
3) What is client-side and server-side in C#?
4) How does a web client work with a server-side script or application?
5) How to call server-side function from client-side in ASP.NET c#?
6) How do I debug an ASP.NET application that wasn't written with Visual Studio.NET and that doesn't use code-
behind?
An Active Server Page consists of scripting language statements and standard HTML code. To distinguish between the two we put the
scripting code in brackets <% %>
When the URL of the Active Server Page is entered in the browser, say
http://nt2.ec.man.ac.uk/coursesamples/example1.asp
the web server processes the Active Server Page code and would, in this example, return the following HTML
<HTML>
<BODY>
<FONT SIZE="3">Hello World!<BR>
<FONT SIZE="4">Hello World!<BR>
<FONT SIZE="5">Hello World!<BR>
<FONT SIZE="6">Hello World!<BR>
<FONT SIZE="7">Hello World!<BR>
</BODY>
</HTML>
The processing is invisible to the browser and the user and all they see is standard HMTL.
2) Server-side scripting
– Reside on server more flexibility
• Database access
– Usually generate custom response for client
– Access to ActiveX server components
• Extend scripting language functionality
– Run exclusively on server cross-platform issues not a concern
– Not visible to client
• Only HTML + client-side scripts sent to client