Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 3rd, 2003, 11:16 AM
Registered User
 
Join Date: Jun 2003
Location: Omaha, Nebraska, USA.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Best book for going from ASP to ASPX?

Which is the best book for existing, experienced 'old-style' ASP coders to quickly translate their thinking process to the new ASPX method? Something with lots of example translations: Here's how you did X in ASP, here's how to do the same thing with best practices of ASPX...
  #2 (permalink)  
Old June 3rd, 2003, 01:48 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

It depends if you are using VB.NET or C#.NET though you aren't limited to just those 2.

Try:
http://www.wrox.com/books/0764543865.shtml
or
http://www.wrox.com/books/0764543776.shtml
  #3 (permalink)  
Old June 3rd, 2003, 05:26 PM
Registered User
 
Join Date: Jun 2003
Location: Omaha, Nebraska, USA.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, that's a good book, I've got the C# version. :)

My biggest confusion at this time is adapting to how to work with the database objects. I hate adding/editing info with raw SQL statements. Could someone show me how to translate the following ASP code into C#-based ASPX code? I am confused on talking to ODBC, and the syntax on ADO objects. Thanks! :D

    Set dbConn = Server.CreateObject("ADODB.Connection")
    dbConn.Open "DSN=ROTFOH;uid=xxxxxxx;pwd=xxxxxxx"

    Set rsMonster = CreateObject("ADODB.Recordset")
    rsMonster.Open "Monster", dbConn, adOpenStatic, adLockOptimistic

    rsMonster.AddNew

    rsMonster("Descr") = Request.Form("Descr")
    rsMonster("AC") = Request.Form("AC")
    rsMonster("HD") = Request.Form("HD")
    rsMonster("NumAppearing") = Request.Form("NumAppearing")
    rsMonster("DamageH") = Request.Form("DamageH")
    rsMonster("DamageL") = Request.Form("DamageL")
    rsMonster("AttackDesc") = Request.Form("AttackDesc")
    rsMonster("AttPerRound") = Request.Form("AttPerRound")

    rsMonster.Update

    Response.Write("Monster Record Created!<p>")
    Response.Write("<form action=AdminMonsterEditor.asp method=post>")
    Response.Write("<input type=submit value='Monster Editor'>")
    Response.Write("</form>")


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP on an ASPX page agrzywi ASP.NET 1.0 and 1.1 Basics 3 January 11th, 2006 04:39 PM
ASP tp ASPX surendran Classic ASP Components 0 August 4th, 2004 12:11 AM
Moving Between ASP and ASPX Yehuda ASP.NET 1.0 and 1.1 Basics 1 August 13th, 2003 04:19 PM
Redirecting to ASPX from ASP gurevle ASP.NET 1.0 and 1.1 Basics 3 July 16th, 2003 10:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.