[thelist] Re: [thechat] ASP vs. ASP.Net - Anyone made the move?

Jim Davis jdavis at hy-tech.net
Tue Oct 2 15:41:27 CDT 2001


A very very rough overview:
During the past several years, Microsoft's Active Server Pages (ASP)
Web-development technology has become one of the most-used tools for
developing dynamic, data-driven Web applications. Now, Microsoft has
introduced ASP.NET, a successor to ASP that dramatically improves on ASP's
performance, reliability, and speed of development. Just how different is
the new ASP.NET Web-development technology from the ASP that developers know
and (mostly) love? In terms of migrating existing pages, ASP.NET isn't all
that different, and much of your current ASP code will run fine under
ASP.NET. You can also run ASP pages side by side with ASP.NET applications
(although ASP and ASP.NET applications don't share application or session
states), so you don't have to migrate all at once. But at its heart, ASP.NET
is as different from ASP as a Hemi 'Cuda is from a VW Beetle. Both of them
can get you where you need to go, but one is vastly more powerful than the
other and gives you more options for customization. Part of that power comes
from ASP.NET's tight integration with Microsoft's next-generation
data-access technology, ADO.NET, which gives you robust and high-performance
data binding.

>I know that the code has to be surrounded by <script></script> tags...but
do you have
>to put some sort of write or response.write function for outputted HTML.

ASP.NET is designed to separate code from content. So you won't typically
ever use response.write to display any plain HTML. .NET provides the
framework with very distinct server controls that produce browser specific
HTML, making your job easier.  The following example uses an ASP:Label
control, this is a simple control that lets you place value in page without
worrying about Response.Write or <%=StrVar%>.  I coded classic ASP for about
three years and then got hooked on .NET, it's well worth the 2-3 weeks worth
of studying to adapt.

Here is a typical ASP.NET Script.

<html>
<head>
 <script runat="server" language="vb">
  Public Sub Page_Load(Sender As Object, E As EventArgs)
   Dim bc As HttpBrowserCapabilities = Request.Browser
   If bc.Cookies = True Then
    JS_Test.Text = "Cookies are enabled."
   Else
    JS_Test.Text = "Cookies are disabled."
   End If
  End Sub
 </script>
 <title>HttpBrowserCapabilities</title>
</head>
<body>
<form runat="server" method="post">
 <asp:Label runat="server" ID="JS_Test" />
</form>
</body>
</html>

Version Seen by a typical client

<html>
<head>
 <title>HttpBrowserCapabilities</title>
</head>
<body>
<form runat="server" method="post">
 Cookies are enabled.
</form>
</body>
</html>

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of
jay.blanchard at thermon.com
Sent: Tuesday, October 02, 2001 3:53 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] Re: [thechat] ASP vs. ASP.Net - Anyone made the
move?


 > Excellent! This will put off any "do-overs" on existing stuff for a
while.
 > Is the "<%%>" really gone, or does it still exist even in .Net when
 > converting? Just locating those little tags could be a costly,
 > time-consuming, exercise in thousands of ASP pages. You can't just
 > eliminate them, can you?!

Actually, I think you can, if you can be bothered. You know when you get a
message that has been forwarded a few times and you get all those >>>>>>>
preceding every line of text, well my wife copies it into Word and then uses
the replace function to change > into a space. I have no idea if this will
actually work with code, so don't take this as a recommendation, but it
might be worth a try.

Hmmmm....seems as if you could run into some problems, however I could be
wrong as I have seen precious little of ASP.Net code to date. I know that
the code has to be surrounded by <script></script> tags...but do you have
to put some sort of write or response.write function for outputted HTML. I
need to go buy a book I guess and find some way of putting the PHB off for
a while.

Thanks!

Jay Blanchard
Web Development Manager
Thermon Manufacturing Company
1.800.820.HEAT x327


---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list