Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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
 
Old January 11th, 2014, 04:39 PM
Authorized User
 
Join Date: Jan 2014
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Default Organizing code chapter question

On chapter 5, page 178-179 - where it says you can find the namespace and add the required Imports (VB) or using (C#) statements you need by typing in the class name, putting the cursor on it and pressing CTRL + dot (.) - Microsoft Visual Studio 2010 Professional does not do this. I tried several times.

Anyone else having this problem? Looks like I'm going to have to remember all the namespaces and where things are, huh? Oy!

So far, I LOVE this book. I've been working with ASP Classic, Javascript, T-SQL, and other languages for the last 16 years. ASP.NET has come a long way since 1.0, and I find it to be a lot more to my liking now.

Thanks for publishing this.


Last edited by techiegeekster40; January 11th, 2014 at 04:44 PM..
 
Old January 11th, 2014, 04:55 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Glad to hear you like the book so much.

Can you post the code you're trying this on?

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!
 
Old January 11th, 2014, 05:09 PM
Authorized User
 
Join Date: Jan 2014
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Default Code posted

Sure!

here it is:
// Start code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
SmtpClient

public partial class Demos_CalculatorDemo : BasePage
{
...
}
// End code

I had my I-Bar cursor in SmtpClient and was pressing CTRL + . on my keyboard. Nothing happened. I didn't get any menu that popped up (like figure 5-5) Just FYI.
 
Old January 11th, 2014, 05:30 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Ah, you're typing it in the wrong location.

You should type SmtpClient somewhere in a method like a button click handler or the page's Load method (where you're going to use the SmtpClient) and then press Ctrl+Dot on SmtpClient which will then insert using System.Net.Mail at the top of the document.

Hope this helps,

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!
The Following User Says Thank You to Imar For This Useful Post:
techiegeekster40 (January 11th, 2014)
 
Old January 11th, 2014, 05:37 PM
Authorized User
 
Join Date: Jan 2014
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
Ah, you're typing it in the wrong location.

You should type SmtpClient somewhere in a method like a button click handler or the page's Load method (where you're going to use the SmtpClient) and then press Ctrl+Dot on SmtpClient which will then insert using System.Net.Mail at the top of the document.

Hope this helps,

Imar
DOH! That worked. Thanks.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Misleading question: Chapter 3, Question 15 rupe120 BOOK: MCSD Certification Toolkit (Exam 70-483): Programming in C# 0 July 17th, 2013 09:10 AM
I have question, is not about code nawar youssef BOOK: Beginning PHP 5.3 0 October 22nd, 2011 11:14 PM
Chapter 10: Folder organizing in Card perloc BOOK: Beginning Microsoft Visual C# 2008 ISBN: 978-0-470-19135-4 0 January 4th, 2011 12:34 AM
Code Question JES1 BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer 4 December 17th, 2010 04:15 PM
Tips for organizing Team Projects? vcohen BOOK: Professional Team Foundation Server ISBN: 0-471-91930-6 0 April 9th, 2007 05:10 PM





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