Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 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?
Reply With Quote
  #2 (permalink)  
Old November 16th, 2010, 04:32 AM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,957
Thanks: 79
Thanked 1,556 Times in 1,533 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!
Reply With Quote
  #3 (permalink)  
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!
Reply With Quote
  #4 (permalink)  
Old November 16th, 2010, 12:36 PM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,957
Thanks: 79
Thanked 1,556 Times in 1,533 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!
Reply With Quote
  #5 (permalink)  
Old May 8th, 2011, 05: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?
Reply With Quote
  #6 (permalink)  
Old May 8th, 2011, 05:19 PM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,957
Thanks: 79
Thanked 1,556 Times in 1,533 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!
Reply With Quote
  #7 (permalink)  
Old May 9th, 2011, 09: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!
Reply With Quote
  #8 (permalink)  
Old May 9th, 2011, 09:58 AM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,957
Thanks: 79
Thanked 1,556 Times in 1,533 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!
Reply With Quote
  #9 (permalink)  
Old May 9th, 2011, 12:41 PM
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!
Reply With Quote
The Following 2 Users Say Thank You to whenning For This Useful Post:
Imar (May 9th, 2011)
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
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 04: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 12:58 PM
return *this - Chap 8 pg 418 proslambano BOOK: Ivor Horton's Beginning Visual C++ 2005 0 March 10th, 2007 01:19 PM



All times are GMT -4. The time now is 10:24 PM.


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