Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #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...
Reply With Quote
  #2 (permalink)  
Old June 3rd, 2003, 01:48 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,111
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
Reply With Quote
  #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>")
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 03: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



All times are GMT -4. The time now is 06:42 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.