Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Started!

Status
Not open for further replies.

vlitim

Programmer
Joined
Sep 2, 2000
Messages
393
Location
GB
I have been asked to start looking at asp.net and I really don't know what the main differences/advantages are over normal asp. Also how difficult is it to migrate to .net???

If someone could point me in the right direction it would help me out a great deal.

Cheers
Tim
 
Tim there are several good resources on the web for learning asp.net

My favorites:
direct link to the asp.net side
aspnet.4guysfromrolla.com

they have both asp and asp.net there


and my personal fave

This website though it covers ASP.Net it also covers, C#, VB.Net, ADO.Net and all sorts of .net code they have designed it with downloadable Videos that you watch and learn. and it is probably the cheapest source of good .net videos on the planet. Gold members have access to over 50 hours of videos and source code.

The basic difference between ASP and ASP.net is ASP is linear in its program execution and does not have programable events.

whereas ASP.NEt is first and formost Object Oriented Programming, Events very similar to VB are programmable and allow greater flexability in page design. Server side controls act very much the same as vb controls, textboxes, lables panels etc....
Plus the added ease of .net code that allows lots of coding to be reduced to a couple of lines where asp would take many more lines of code to produce the same results.

hope this help
:-)

George Oakes
Goakes@TiresPlus.com = Programmer
George@1-Specialday.com = Mobile DJ
Check out this awsome .Net Resource!
 
excellent.

If you could just get me started on something that I have done for example. The below code is a default.asp page, how would I convert this to a default.aspx page?????

code below


<%@ LANGUAGE=&quot;VBSCRIPT&quot; %>
<% Option Explicit %>
<HTML>

<%
If session(&quot;staffID&quot;) = &quot;&quot; Then
response.redirect(&quot;logon.asp?step=4&quot;)
End If
%><!-- #include virtual=&quot;/includes/setup.inc&quot;-->
<!-- #include file=&quot;includes/logon/cookieCheck.inc&quot;-->
<!-- #include virtual=&quot;/includes/page_setup/table_start.inc&quot;-->
<%
Select case step
case &quot;1&quot;
response.redirect (&quot;default.asp?Step=2&quot;)
%>
<% case &quot;2&quot; %>
<!-- #include virtual=&quot;/includes/homepage.inc&quot; -->
<% case &quot;5&quot; %>
<!-- #include file=&quot;includes/metrics/showMetrics.inc&quot;-->
<% End select %>


<!-- #include virtual=&quot;/includes/page_setup/table_end.inc&quot;-->


</HTML>
 
realy there is nothing you realy need to do to that page other than change the session(variable).tostring

Now you may need to modify the include files drasticaly depending on what they are used for.

IF the Inlcude have ASP then they may need to be modified, if they are HTML and JAva you should be able to leave them alone.

You can use ASP and ASP.Net web pages on the same site. Unless you have a need to convert a page to ASP.net its not realy nessesary.

GO to they have a free asp.net web page designer called web matrix (its free) and you can author ASP, ASP.NET and HTML pages

Good Luck :-)


<HTML>

<%
If session(&quot;staffID&quot;.tostring) = &quot;&quot; Then
response.redirect(&quot;logon.asp?step=4&quot;)
End If
%>
<!-- #include virtual=&quot;/includes/setup.inc&quot;-->
<!-- #include file=&quot;includes/logon/cookieCheck.inc&quot;-->
<!-- #include virtual=&quot;/includes/page_setup/table_start.inc&quot;-->
<%
Select case step
case &quot;1&quot;
response.redirect (&quot;default.asp?Step=2&quot;)
%>
<% case &quot;2&quot; %>
<!-- #include virtual=&quot;/includes/homepage.inc&quot; -->
<% case &quot;5&quot; %>
<!-- #include file=&quot;includes/metrics/showMetrics.inc&quot;-->
<% End select %>


<!-- #include virtual=&quot;/includes/page_setup/table_end.inc&quot;-->


</HTML>

George Oakes
Goakes@TiresPlus.com = Programmer
George@1-Specialday.com = Mobile DJ
Check out this awsome .Net Resource!
 
I have tried that but I get the following error

Compiler Error Message: BC30689: Statement cannot appear outside of a method body.

Source Error:

Line 9: %><!-- #include virtual=&quot;/includes/setup.inc&quot;-->
Line 10: <%
Line 11: Select case step
Line 12: case &quot;2&quot;
Line 13: leftbarID=1

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top