Pages not in root folder

R

Rick

Hi,

Our website used to have all pages in the root folder, and the entry
page is "Login.aspx".

I was asked to move all pages inside a folder named "Aspx"

Is it possible to move also the default page "Login.aspx" into this
folder, or should it be left in the root folder?

"Login.aspx" is set as the default page in IIS.
If "Login.aspx" is moved into the folder, how is IIS supposed to find
it ?

Thanks in advance,

Rick
 
C

Cowboy \(Gregory A. Beamer\)

Depends on what you have set up. I think he simply means default document,
which is at root of each directory. In which case, the answer is no.
 
C

Cowboy \(Gregory A. Beamer\)

Rick said:
Hi,

Our website used to have all pages in the root folder, and the entry
page is "Login.aspx".

Not the best design. With ASP.NET 2.0 you can specify a login page and allow
the user to try to hit some other default.

Now that you have placed all files, except one, in a folder, you now need a
login.aspx that does not login in that folder. Ouch!
I was asked to move all pages inside a folder named "Aspx"

Not sure what this accomplishes except to make things more confusing, but
management often surprises me.
Is it possible to move also the default page "Login.aspx" into this
folder, or should it be left in the root folder?

If you mean default page as specified, it is a page at every level. INside
your ASPX folder if someone hits without a page specified, it will look for
login.aspx there, but you cannot move it from root without creating a
redirect.
"Login.aspx" is set as the default page in IIS.
If "Login.aspx" is moved into the folder, how is IIS supposed to find
it ?

Not sure why it is set up this way, as it circumvents the norm in ASP.NET
development.
 
M

Masudur

Hi,

Our website used to have all pages in the root folder, and the entry
page is "Login.aspx".

I was asked to move all pages inside a folder named "Aspx"

Is it possible to move also the default page "Login.aspx" into this
folder, or should it be left in the root folder?

"Login.aspx" is set as the default page in IIS.
If "Login.aspx" is moved into the folder, how is IIS supposed to find
it ?

Thanks in advance,

Rick

Hi...

yes you can more your all pages... to any folder...
but in that case to define your login page you got to mention the
location of your login page... in web.config

<authentication mode="Forms">
<forms loginUrl="yourdir\Login.aspx"></forms>
</authentication>

like this

Thanks
Md. Masudur Rahman (Munna)
Kaz Software Ltd.
www.kaz.com.bd
http://munnacs.110mb.com
 
M

Masudur

Why dont you just try it. Create a folder and copy your files.

The defaults in IIS doesn't relate the the root folder, it relates to files
that IIS should seek out when presented with only a path, not a file name.

Regards

John Timney (MVP)http://www.johntimney.comhttp://www.johntimney.com/blog












- Show quoted text -

Hi,

Our website used to have all pages in the root folder, and the entry
page is "Login.aspx".

I was asked to move all pages inside a folder named "Aspx"

Is it possible to move also the default page "Login.aspx" into this
folder, or should it be left in the root folder?

"Login.aspx" is set as the default page in IIS.
If "Login.aspx" is moved into the folder, how is IIS supposed to find
it ?

Thanks in advance,

Rick

Hi...

yes you can more your all pages... to any folder...
but in that case to define your login page you got to mention the
location of your login page... in web.config

<authentication mode="Forms">
<forms loginUrl="yourdir\Login.aspx"></forms>
</authentication>

like this

Thanks
Md. Masudur Rahman (Munna)
Kaz Software Ltd.
www.kaz.com.bd
http://munnacs.110mb.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top