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
| 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 Search this Thread Display Modes
  #1 (permalink)  
Old August 7th, 2014, 11:31 PM
Registered User
Points: 33, Level: 1
Points: 33, Level: 1 Points: 33, Level: 1 Points: 33, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2014
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Is this the stupidest question in the world?

If you didn't read this before 10:07 Pacific Time, you'll never know how stupid this question was. Sorry.

Last edited by JeffPalley; August 8th, 2014 at 01:16 AM.. Reason: It was a stupid question I answered myself
Reply With Quote
  #2 (permalink)  
Old August 10th, 2014, 02:23 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

I did read it before 10:07. Would you mind elaborating on the solution?

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 August 10th, 2014, 09:32 PM
Registered User
Points: 33, Level: 1
Points: 33, Level: 1 Points: 33, Level: 1 Points: 33, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2014
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default it appears that website files must be individually opened

When I just "open website," I suppose I'll have to admit that the website *is* opened, but the only FILE that's opened is web.config or configure.master. If I want to edit an aspx file within the website I have to manually open it. I had assumed that when a website is opened, all the files in that folder would become available automatially, similarly to the way it works when I right-click on the website folder and see that there's a choice called "Open as a website with Microsoft Webmatrix."

I guess that what I was looking for was a standard way of opening a website in Visual Studio (whether VS is open or not), sort of the way Photoshop works: if I click on a Photoshop file, Photoshop opens automatically and displays the image.

Right now, the best I've been able to find -- and it's good enough -- is to right-click on the website folder, then use Solution Explorer to open the file I really want to edit.

It just *seems* like there should be a more direct way.

Thanks,
-Jeff
Reply With Quote
  #4 (permalink)  
Old August 12th, 2014, 03:13 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

Hi Jeff,

An ASP.NET web site is a collection of files. A typical site has tens, hundreds or even thousands of files. Opening them all up when you open the site would be very inconvenient. The Solution Explorer is your view on your site, enabling you you easily located the files you want to work with. Opening up the file you want to edit is then as easy as double-clicking it.

PhotoShop works different, as it operates on a single file. Opening a PSD starts PhotoShop and then loads that single file for you to edit. Visual Studio, with its multi-file projects and sites just works different. Practice a bit with the Solution Explorer and I am sure you'll start to like 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
  #5 (permalink)  
Old August 12th, 2014, 06:10 PM
Registered User
Points: 33, Level: 1
Points: 33, Level: 1 Points: 33, Level: 1 Points: 33, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2014
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with my "solution" when sites are big & multi-file

Hi Imar,

I appreciate that you took the time to respond. Actually, I eventually came to the same conclusion (unfortunately, I'm a slow thinker). Still, even though I can't offer a solution, it seems that, since that kind of website is just a collection of files in a single folder, and Windows Explorer is sufficiently aware of the contents of that folder to offer to "open as website with WebMatrix," then why not use those same criteria and make the same offer but for Visual Studio as well as WebMatrix? Precisely which files it would open -- well I don't have an answer: maybe it would look to see if the folder contained files with names like web.config, default.aspx, startpage.aspx, etc.

To summarize, it seems that there ought to be SOME way of right-clicking the folder in Windows Explorer and with only a single additional click, ending up with the website open in Visual Studio plus with a few likely-to-be-useful files already open (and all files visible via Solution Explorer).

Again, I very much appreciate your well-worded and thoughtful response.

Thanks again,
-Jeff
Reply With Quote
  #6 (permalink)  
Old August 15th, 2014, 04:44 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

Yes, you should be able to that. Years ago I had a registry key that would a command that would do exactly that. However, I haven't used, or had the need for it in years.

Although a Web Site Project is just a collection of files in a folder, VS still keeps track of it in a Solution Folder. So, after you created a site for the first time, it should show up on your Start Page. So, rather than going to Windows Explorer and open up VS by right-clicking a folder, you just start VS first and then pick the site from the Start Page, or from File | Open Website.

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
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
Is this the stupidest question in the world? JeffPalley ASP.NET 4 General Discussion 0 August 7th, 2014 11:13 PM
Hello World! gcgarris BOOK: Beginning iOS 5 Application Development 1 October 13th, 2012 09:11 PM
Chapter 1 Question Hello World A725859 BOOK: Beginning Android 4 Application Development 9 October 3rd, 2012 05:12 PM
hello world! help :( archer11 BOOK: Beginning iPad Application Development 11 August 24th, 2010 01:27 PM



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


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