Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 Search this Thread Display Modes
  #1 (permalink)  
Old February 24th, 2009, 09:54 PM
Authorized User
 
Join Date: Feb 2009
Location: Lake Forest, California
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can I use Visual Studio 2008

Hi Imar, I am enjoying skimming through this book and was wondering if it's ok to use VS 2008 to follow the examples?

Cheers,

Kevin
Reply With Quote
  #2 (permalink)  
Old February 25th, 2009, 03:48 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Kevin,

You certainly can. The Visual Web Developer that is part of Visual Studio 2008 is almost identical to the stand-alone VWD Express Edition. Where things are different, I mention that in the book so you know where to look for. It's just minor stuff though; the name of some panels, the name of a menu item and that's about it.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #3 (permalink)  
Old February 25th, 2009, 10:37 AM
Authorized User
 
Join Date: Feb 2009
Location: Lake Forest, California
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Imar for the fast reply!...a few more questions.

What is the difference between creating a "Web Site" and "Project".? I do notice that VWD and VS add "My Project" and a "ClassDiagram" file's to the solution.

Also in your opinion, for a newbie, what do you think is easier to learn, C# or VB.net??

Thanks,
Kevin
Reply With Quote
  #4 (permalink)  
Old February 25th, 2009, 10:38 AM
Authorized User
 
Join Date: Feb 2009
Location: Lake Forest, California
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Imar for the fast reply!...a few more questions.

What is the difference between creating a "Web Site" and "Project".? I do notice that VWD and VS add "My Project" and a "ClassDiagram" file's to the solution when you select "Project".

Also in your opinion, for a newbie, what do you think is easier to learn, C# or VB.net??

Thanks,
Kevin
Reply With Quote
  #5 (permalink)  
Old February 25th, 2009, 10:51 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Kevin,

Check out page 34 and onwards for a discussion on Web Site Projects versus Web Application Projects. Additionally, check out this blog post by Peter Lanoie (planoie on this forum): http://www.compiledthoughts.com/2008...n-project.html

With regards to learning VB and C#: difficult to say, as it large comes down to preference and prior knowledge. VB.NET tends to look more like plain English, so it may be easier to pick up. Fortunately, the book teaches both so you can choose your favorite one.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #6 (permalink)  
Old February 26th, 2009, 05:45 PM
Authorized User
 
Join Date: Feb 2009
Location: Lake Forest, California
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, been a while since I rock'n'rolled with VS!

I will stick with vb.net since it's the first language I learned.

I would like to play around with the northwind db to refresh some "old" memory but when I try to add existing item to the App_Data Folder/northwind.mdf ...i get "Access Denied"

I'm on Vista so maybe i need addmin permissions?

SQLExpress is running fine with pubs db

thanks for any help with this Imar.

kevdog
Reply With Quote
  #7 (permalink)  
Old February 26th, 2009, 05:49 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Check out Appendix B of the book; it's devoted to SQL Server and security

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #8 (permalink)  
Old March 1st, 2009, 03:28 PM
Registered User
 
Join Date: Mar 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Web Application Projects

Imar,

In Ch2 Creating Web Sites with VWD 2008, you explain that in VWD Express, Web Application Projects are not an option, however I just installed VWD Express on my laptop and noticed that of I do the Following: File > New Project, under both VB and C# Web aoptions, there is a ASP.NET Web Application template available. Is this the same Web Application Project that you were describing or something different?

Also,

I have an existing MySQL database that I am trying to use as I go through the examples in Chapters 11+. In chapter 12: Data Source and Data-Bound Controls Working Together, I am at step 7 dragging a table out of my MySQL database and I do not get the automatic generation of a GridView and a SqlDataSource. Is this the type of behavoir I should expect from non-Microsoft databases?

Thank you in advance.
Reply With Quote
  #9 (permalink)  
Old March 1st, 2009, 04:26 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Microsoft has added the Web Application Project in Service Pack 1 for VWD 2008 Express Edition. This SP1 was released months after the book, so by the time I wrote the book, they weren't supported, but now they are

What do you mean with "automatic generation of a SqlDataSource"? What behavior are you not getting / seeing?


Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #10 (permalink)  
Old March 1st, 2009, 04:49 PM
Registered User
 
Join Date: Mar 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Wow, thanks for the quick reply!

Re: Web Application Project...OK, well, that's good news for us...

Re: MySQL:
Step #7 States:
Quote:
Expand the PlanetWrox.mdf database, then the Tables node, and then drag the Genre table from the Database Explorer and drop it in the cpMainContent area of the Genres page. VWD creates a GridView and a SqlDataSource for you automatically.
So, I dragged one of my tables from my MySQL database into the cpMainContent area and it did not create a GridView and a SqlDataSource for me automatically, in fact as far as I can tell, it didn't do anything at all. To further explain, I was expecting to see something similar to figure 12-4. FYI, I did try the example using your example database and it worked as expected.
Reply With Quote
Reply


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
Help with Visual Studio 2008 IDE dotnetDeveloper Visual Studio 2005 1 December 6th, 2008 12:55 PM
Visual Studio 2008 .NET3.5 TashaAT BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 September 7th, 2008 12:13 PM
very new to Visual Studio 2008 Joel Saren Visual Basic 2008 Essentials 2 June 6th, 2008 03:27 PM
Visual studio 2008 - wap Feodorov Other Programming Languages 1 March 11th, 2008 09:17 PM
Visual Studio 2008 looks juzjess Intro Programming 0 October 26th, 2007 03:35 PM



All times are GMT -4. The time now is 02:35 PM.


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