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 November 16th, 2010, 01:50 AM
Registered User
 
Join Date: Nov 2010
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default Try it Now, Chap. 4, Pg 123

As I was typing the code, "Result.Text"... on each line, the intellisense was trying to turn it into msgresult.... - why is that?
 
Old November 16th, 2010, 04:32 AM
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,

Don't know; I guess it depends on the context, and how you wrote your code exactly. Maybe you had "suggestion mode" turned on and msgresult was into scope somehow?

You can switch modes using Ctrl+Alt+Space.

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!
 
Old November 16th, 2010, 12:28 PM
Registered User
 
Join Date: Nov 2010
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

ok, thanks, but I don't think that was it. When I finished typing those two lines, I still had the little blue squgglies under them, as if they were wrong. I compared your code - which I had downloaded -- with mine, and couldn't see the difference. I thought that I must not have defined the label correctly, so that the code didn't recognize that I had a control named "Result".

The bigger problem is that I spend so much time fooling with it, that by the tme I got it to work, I had forgotten the point of the exercise!
 
Old November 16th, 2010, 12:36 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
I thought that I must not have defined the label correctly, so that the code didn't recognize that I had a control named "Result".
Yes, that's a common cause for IntelliSense confusion. If it can't find the stuff you're typing in, it tries to find close matches which are not always accurate...

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 May 8th, 2011, 04:07 PM
Registered User
 
Join Date: May 2011
Posts: 5
Thanks: 0
Thanked 2 Times in 1 Post
Default How did you get this to work?

Quote:
Originally Posted by jefals View Post
ok, thanks, but I don't think that was it. When I finished typing those two lines, I still had the little blue squgglies under them, as if they were wrong. I compared your code - which I had downloaded -- with mine, and couldn't see the difference. I thought that I must not have defined the label correctly, so that the code didn't recognize that I had a control named "Result".

The bigger problem is that I spend so much time fooling with it, that by the tme I got it to work, I had forgotten the point of the exercise!

How did you get this to work?
 
Old May 8th, 2011, 04:19 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,

Are you running into the same issue? Then make sure you have a Label control called Result defined in the markup of the page. Then save your changes and switch back to Code Behind. Result should now appear in IntelliSense. If it doesn't close and reopen the page or even VWD, although the latter shouldn't be necessary.

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!
 
Old May 9th, 2011, 08:55 AM
Registered User
 
Join Date: May 2011
Posts: 5
Thanks: 0
Thanked 2 Times in 1 Post
Default

Quote:
Originally Posted by Imar View Post
Hi there,

Are you running into the same issue? Then make sure you have a Label control called Result defined in the markup of the page. Then save your changes and switch back to Code Behind. Result should now appear in IntelliSense. If it doesn't close and reopen the page or even VWD, although the latter shouldn't be necessary.

Cheers,

Imar
Thank You!
 
Old May 9th, 2011, 08:58 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

To help a future vistor to this problem solve a similar issue, would you mind explaining *how* you solved it? ;-)

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 May 9th, 2011, 11:41 AM
Registered User
 
Join Date: May 2011
Posts: 5
Thanks: 0
Thanked 2 Times in 1 Post
Default

Quote:
Originally Posted by Imar View Post
To help a future vistor to this problem solve a similar issue, would you mind explaining *how* you solved it? ;-)

Imar

In Design view, select the Label (which now contains the text "Type your name"). In the Label Properties, change the ID to Result. That's it!
The Following 2 Users Say Thank You to whenning For This Useful Post:
Imar (May 9th, 2011)





Similar Threads
Thread Thread Starter Forum Replies Last Post
BasePage (Chap 4 pg 98) NetWorld BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 1 November 25th, 2010 02:39 PM
Chap 15 pg 532 tomche BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 10 April 2nd, 2010 03:37 PM
Chap 1 pg 48 OpenStream not referencing tomche BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 3 September 22nd, 2009 11:58 AM
return *this - Chap 8 pg 418 proslambano BOOK: Ivor Horton's Beginning Visual C++ 2005 0 March 10th, 2007 01:19 PM





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