Wrox Programmer Forums
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion 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 July 3rd, 2012, 03:47 AM
Authorized User
 
Join Date: Sep 2011
Posts: 41
Thanks: 3
Thanked 4 Times in 3 Posts
Default Baffled ... can't find files

Hi,

I have to learn how an existing website works from scratch (no documentation). So I downloaded the files from the web server onto my local machine. In the default.master, there are links to aspx pages:

Code:
<div class="mainNav">
                    <ul>
	                    <li><a href="Begin.aspx" id="mfa5"><img alt="Begin Your Order" hover="images/a-main-nav-start.gif" src="images/a-main-nav-start.gif"></a></li>
                        <li><a href="Inspiration.aspx" id="mfa6"><img alt="Inspiration Center" hover="images/a-main-nav-inspiration.gif" src="images/a-main-nav-inspiration.gif"></a></li>                        
                    </ul>
                </div>
The part that baffles me is that I cannot find any of these files (begin.apsx, inspiration.aspx) in the same directory, let alone the entire project.

But on the live website, the links work perfectly. Where in the world are these files? I have no idea what's going on here ???
 
Old July 3rd, 2012, 04:46 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,

Hard to say exactly without knowing more about the setup and project type, but could it be due to some rewriting rules either at the site or at the IIS level? Maybe Begin.aspx is the "user friendly" name and is rewritten to another page?

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 July 3rd, 2012, 05:04 AM
Authorized User
 
Join Date: Sep 2011
Posts: 41
Thanks: 3
Thanked 4 Times in 3 Posts
Default

Hi Imar,

rewriting is new to me, I will look it up ...

QUESTION: even if "rewriting is used", would the begin.aspx file still need to be on the web server? 'cause I don't see it at all ...

BTW, there is a Rewrite section in web.config:

Code:
 <rewrite>
      <rules>
        <rule name="about-us" patternSyntax="ExactMatch" stopProcessing="true">
          <match url="about-us"/>
          <action type="Redirect" url="http://www.aaa.com/About-Us.aspx"/>
        </rule>
      <rules>
<rewrite>
There's actually a bunch of them listed, I just copied one to show example. However, none seem to have anything to do with the links/aspx files in OP.
 
Old July 3rd, 2012, 05:16 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
even if "rewriting is used", would the begin.aspx file still need to be on the web server
Nope; the idea of rewriting is that you can have URLs that don't exist and map them to existing files. This allows you to do stuff like:

www.volvo.com/v70
www.volvo.com/v60

while under the hood they may be rewritten to:

www.volvo.com/Cars/Details.aspx?Id=123
www.volvo.com/Cars/Details.aspx?Id=456

The patterns allow wild card and reg ex mappings. Maybe there's a generic rule that maps the incoming request to a generic page that in turn looks at the requested URL and (just an example) serves content from the database?

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Totally baffled Obj-C noob [email protected] BOOK: Beginning iPad Application Development 3 February 19th, 2011 09:24 AM
How to find the test files? MikeB@DFAS BOOK: Beginning Oracle Application Express ISBN: 9780470388372 4 May 10th, 2010 09:13 AM
find download code files Richard_king ASP.NET 1.0 and 1.1 Basics 0 November 3rd, 2006 05:28 AM
Where to find download code files for this book ? cat2123 All Other Wrox Books 1 November 10th, 2004 09:10 AM
How to find items in files merrelldj VB How-To 0 September 26th, 2003 02:29 PM





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