 |
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8  | This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 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
|
|
|
|
|

February 16th, 2006, 12:43 PM
|
|
Friend of Wrox
|
|
Join Date: Apr 2005
Posts: 190
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Which page is the project start page?
Does anyone know how you can tell, short of starting the project (VWD site) how one can tell beforehand which aspx page has been designated as the start page?
In my Solution Explorer neither the main app nor any aspx has such a property. That bit of info must be stored somewhere, but I can't find it.
It would have been nice if the VWD designers would have made the start page name appear in the Solution Explorer list in bold font, or appended an asterisk or something.
Anyone? Thanks
VV
|
|

February 16th, 2006, 02:00 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
Hey,
Not that I know of; I usually just right-click set as start whenever I'm unsure. Even if it is already set, it doesn't error.
Brian
|
|

February 16th, 2006, 02:36 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
I don't think there's a way to visually tell what page is the default if you have set one explicitly.
However, the default for VWD is "Current Page". This means it tries to open the current active file. If that's a code behind file, it tries to open the associated .aspx file. If tat doesn't work, it opens at the root of the site.
For me, this works a lot better than the VS.NET 2003 fixed starr page option, as usually running the current page is exactly what I want...
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

February 28th, 2006, 02:14 PM
|
|
Friend of Wrox
|
|
Join Date: Apr 2005
Posts: 190
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I note that the web.config file has an <authentication> block
and within that the <forms> tag, which has a loginURL attribute.
The page specified for the attribute for the app is Default.aspx.
The start page can be overridden simply by right clicking on the
desired start page in the project explorer.
NOTE that in so doing, the loginURL attribute IS NOT CHANGED.
This is certainly misleading for anyone who comes behind you when
the code is modified or enhanced!
VV 2/28/06
|
|

February 28th, 2006, 02:22 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
I am not sure I understand what you're saying here.
Why would loginUrl be changed when you change the start page? And why is this misleading?
Maybe you're misunderstanding the purpose of the loginUrl attribute?
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

February 28th, 2006, 02:35 PM
|
|
Friend of Wrox
|
|
Join Date: Apr 2005
Posts: 190
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I noted in reviewing chapter 2, that the \authentication\forms\loginURL string
specifies which page is for login. Maybe I do misunderstand. It appears to me
that that string would specify where the app begins -- at least for login and
login is where one would normally start, no?
VV
|
|

February 28th, 2006, 02:40 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
No, not necessarily.
Default.aspx is often where you start. That is, you browse to www.yourdomain.com/ and then default.aspx is server automatically (because it's the default document for the web server).
Take for example my own web site. 90% of the site is accessible by unauthenticated users. Most of them will never see the Login.aspx page. However, as soon as you try to access a protected page, the ASP.NET runtime transfers you to Login.aspx (or any other page specified in the loginUrl attribute).
So, the setting is for run-time behavior, not for development time....
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

February 28th, 2006, 02:45 PM
|
|
Friend of Wrox
|
|
Join Date: Apr 2005
Posts: 190
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I understand. You are right.
For a moment there I thought I had found where ASP.NET stores the name
of the page to start with. Darn.... Thanks.
VV
|
|

February 28th, 2006, 03:59 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
I am not 100% sure, but I think this setting is saved in the .suo (Solution User Options file) that is saved together with the .sln (Solution) file for your web project / solution.
Since the start page is a per user setting, that would be an ideal location....
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

February 28th, 2006, 04:17 PM
|
|
Friend of Wrox
|
|
Join Date: Apr 2005
Posts: 190
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Imar:
Sounds like just the place that info should be stored.
However, I cannot find any kind of file that ends with .suo or .sln on my
machine and I opened up the Windows Explorer to show hidden files and system
protected files -- everything. ???
VV
|
|
 |