Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 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
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 24th, 2008, 05:39 PM
Authorized User
 
Join Date: Aug 2008
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Jumping from ASP to ASP.net -- VB?

Anyone out there have the code for this WroxBlox in VB?

The content is quite helpful, and I had high hope for use, until I found the code is only provided in C#.

Anyone have a converted code download for this one?

Let me know - thanks!
JN
  #2 (permalink)  
Old August 24th, 2008, 06:20 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

What is "this WroxBlox"???

You don't provide any link to it.
  #3 (permalink)  
Old August 24th, 2008, 06:25 PM
Authorized User
 
Join Date: Aug 2008
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oi! Sorry!

http://www.wrox.com/WileyCDA/WroxTit...470391847.html
  #4 (permalink)  
Old August 24th, 2008, 06:48 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Well, personally I'd just ask for my money back, were I you.

Microsoft has stuff just as good as this, if not more so, for free *AND* written in both C# and VB.NET.

None of this looks hard to convert (no really tricky code, pretty much one-for-one simple conversions), but if you are just learning, you won't know how to do that and it's inappropriate to ask you to do so. I'd complain to Wrox, immediately.

For MSDN, start here:
http://msdn.microsoft.com/en-us/beginner/default.aspx
which can take you here:
http://msdn.microsoft.com/en-us/beginner/bb308786.aspx

Be sure to check out adjunct sub-sites such as
http://msdn.microsoft.com/en-us/beginner/bb308761.aspx
and
http://msdn.microsoft.com/en-us/beginner/aa700817.aspx

Good luck!
  #5 (permalink)  
Old August 24th, 2008, 07:02 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Just as an example, here is the converted code for FormPost.aspx.cs (now FormPost.aspx.vb). I didn't actually try running it, but it "feels" right. You can see that it's all just "mechanical" changes. But, still...you shouldn't have to do it.

WROX did say it is C# only, so mea culpa on that score. Still, as easy as this particular set of code would be to translate, you'd think somebody could just do it in a couple of hours and they could make it available.

Code:
Option Strict On
Imports System
Imports System.Collections
Imports System.Configuration
Imports System.Data
Imports System.Linq
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.HtmlControls
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Xml.Linq

public partial class FormPost 
    Inherits System.Web.UI.Page

    protected Sub Page_Load(sender As Object, e As EventArgs)
    End Sub

    protected Sub btnSubmit_Click(sender As Object, e As EventArgs)
        if txtFName.Text = string.Empty OrElse txtLname.Text = string.Empty Then
            Response.Write("<script language='JavaScript'>alert('Please provide both a first name and last name!')</script>")
        Else
            lblMessage.Text = "Hello " & txtFName.Text & " " & txtLname.Text & "!"
        End If
    End Sub
End Class
  #6 (permalink)  
Old August 25th, 2008, 09:52 AM
jminatel's Avatar
Wrox Staff
Points: 18,940, Level: 59
Points: 18,940, Level: 59 Points: 18,940, Level: 59 Points: 18,940, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,945
Thanks: 73
Thanked 139 Times in 101 Posts
Default

JN: We did try to make it clear in the description that this is C# only, not VB. But, let me know if there's something else you'd like us to do to make this right for you.

Jim Minatel
Acquisitions Director
Wiley Technology Publishing
WROX Press
Blog: http://wroxblog.typepad.com/
Wrox online library: http://wrox.books24x7.com
  #7 (permalink)  
Old August 25th, 2008, 10:10 AM
Authorized User
 
Join Date: Aug 2008
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks a ton for the note Jim!

No - I knew exactly what I was getting into - you did you make it quite clear. I was just posting on the off chance that somebody more knowledgeable than I had done a quick convert on the code bits in this one so I could digest it a little easier.

I have also purchased the Beginning ASP.NET 3.5 in C# and VB book and am rapidly making my way through that - so I am pretty well set!

...a note/question for you though? I was disappointed to find that you only offer your books in PDF format in 'a chapter at a time' format roughly equalling an $85 cost for the book in PDF format, while only $42.99 ($26 at Amazon) for print copy. Can't we purchase a chapter at a time, but once we hit the retail cost of the book, be granted a download of all chapters? What are your thoughts?

Thanks again for your attention - Wrox is the only press I read for programming books!

JN
  #8 (permalink)  
Old August 25th, 2008, 10:38 AM
jminatel's Avatar
Wrox Staff
Points: 18,940, Level: 59
Points: 18,940, Level: 59 Points: 18,940, Level: 59 Points: 18,940, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,945
Thanks: 73
Thanked 139 Times in 101 Posts
Default

JN: Multiple chapter discounts is part of a future hoped for shopping cart improvement. We honestly kept the initial chapter sales project as uncomplicated as possible to get it launched, and it was still massively complicated. ;)

Jim Minatel
Acquisitions Director
Wiley Technology Publishing
WROX Press
Blog: http://wroxblog.typepad.com/
Wrox online library: http://wrox.books24x7.com
  #9 (permalink)  
Old August 25th, 2008, 01:50 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

To JMinatel and Wrox:

Apologies. I really *did* look to see where it said the samples were C# only. But, of course, I was only "skimming" and missed it.

For what it's worth, I *am* a fan of Wrox publishing. I still have both my copies of "Beginning Active Server Pages" (that is, the original and "version 3") and have steadily recommended them over the years.

I still think you should find a way to provide the VB.NET code for this book, especially since there is so little code needed. But that's a different issue.
  #10 (permalink)  
Old August 25th, 2008, 02:25 PM
Authorized User
 
Join Date: Aug 2008
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

...and THANKS Old Pedant for providing some of the code for me - really much appreciated so I can get moving in the right direction ahead of getting to those specific coding chapters in the 'big book'

thanks again!
JN
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
send MASS Emails in ASP.NET 2 with VB.NET 2005 alexdcosta ASP.NET 2.0 Basics 1 July 17th, 2006 12:31 AM
Parse XML doc using VB.NET into ASP.NET page kwilliams Classic ASP XML 17 November 11th, 2005 10:42 AM
call window dialog component with asp.net/vb.net s3ng ASP.NET 1.x and 2.0 Application Design 0 June 21st, 2005 04:54 AM



All times are GMT -4. The time now is 07:51 PM.


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