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 > BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
Password Reminder
Register
Register | 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 Display Modes
  #1 (permalink)  
Old September 24th, 2009, 05:34 AM
Registered User
 
Join Date: Sep 2009
Location: Bristol, England
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default Double clicking control does not add code to Code Behind

Hi,
I'm working on the 'Working with Server Controls' exercise (p105) and item 8 does not appear to work i.e. double click the button. In fact in the previous exercises I have had to manually open the Code Behind file in order to copy the code in. However, this code is specific to the control so I'm now stumped!
I'm using VWD Express Edition Version 9 with .Net version 3.5 SP1.

Any ideas?

Also, I'm having to use C# as I get a VB error message that language support has not been installed and so Intellisense is not available. Don't whether it is related!

Regards
Paul
Reply With Quote
  #2 (permalink)  
Old September 24th, 2009, 05:45 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,948
Thanks: 79
Thanked 1,555 Times in 1,532 Posts
Default

Hi Paul,

That's not how it's supposed to be. Sounds like a faulty installation. You can try repairing / reinstalling Visual Web Developer....

And what happens when you create a brand new web site (File | New Web Site), switch to Design View, drag a Button on the page and double click it. Does it work then?

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 September 24th, 2009, 11:27 AM
Registered User
 
Join Date: Sep 2009
Location: Bristol, England
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I think it is the installation as you suggest. I still get the same problem when I start a new web site. Double clicking the button justs takes it back to the source tab with the asp:Button line highlighted.
One other thing I notice is that I cannot change the button id under the properties. As soon as I tab or return off the field value it returns to 'Button1' (the text value works ok though).
Regards
Paul
Reply With Quote
  #4 (permalink)  
Old September 25th, 2009, 03:19 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,948
Thanks: 79
Thanked 1,555 Times in 1,532 Posts
Default

From what you describe: reinstall it is.... ;-) This doesn't sound right....

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 September 25th, 2009, 06:08 AM
Registered User
 
Join Date: Sep 2009
Location: Bristol, England
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Have now re-installed on another PC and the problems appear to have been fixed. Can't really see anything different in the installation. Only thing I did notice was that the other PC had MSXML 4 where as my laptop has Ver 6. This could be totally unrelated though!
Thanks for the help.
Regards
Paul
Reply With Quote
  #6 (permalink)  
Old September 25th, 2009, 05:40 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,948
Thanks: 79
Thanked 1,555 Times in 1,532 Posts
Default

Greta; glad it's working.

I wonder if XML has anything to do with it. I've had various versions of MS XML installed on different machines, and never had the problems you're describing.
You could try to repair VWD through the Control Panel and see if that helps...

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
The Following User Says Thank You to Imar For This Useful Post:
Paul Walton (September 28th, 2009)
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
How to add another Columns to gridview through C# code? chobo2 ASP.NET 3.5 Basics 14 March 8th, 2009 10:13 PM
What is wrong with this code to add a record? Patc4 Pro VB.NET 2002/2003 0 March 25th, 2008 07:18 AM
Add a button with code into Excel hewstone999 Access VBA 0 March 18th, 2008 06:08 AM
Add c++ code to c++.net project happy_face C++ Programming 1 November 9th, 2007 09:42 PM
Expanding TreeView from double clicking ListView maxl Pro Visual Basic 2005 1 March 5th, 2007 11:54 AM



All times are GMT -4. The time now is 11:50 AM.


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