View Full Version : Getting started
SeanRhone
12-19-2005, 02:46 AM
I'm sure this has been covered but after looking through this forum and not seeing it thought I would ask.
I'm new here and created a new application using VS 2003. It's on my site under a folder named "Base" when I go to my site
www.mysite.com (http://www.mysite.com) I get the default index.aspx put there bu DiscountASP. Question is how do I point the site to default to the index.aspx under my "Base" folder?
Thanks alot!
Sean
SeanRhone
12-19-2005, 03:58 AM
I did this and renamed the index.aspx in the root folder but get an error. How does the server know to use the index.aspx in the root/base folder? Or how do I deploy an index/aspx to the root folder when the application is under another folder?
Sean
JerSchneid
12-19-2005, 05:50 AM
You can choose the 'Default Documents' through the DiscountASP Control Panel:
- Log in to your account at my.discountasp.net
- Click IIS manager on the left
- Click the 'Default Docs' tab
- Set the default documents the way you want them
Basically you'll want to put 'default.aspx' as the top line in that text box. You can get rid of the rest or leave them there in case you want to have those act as default documents in other folders.
JerSchneid
12-19-2005, 06:00 AM
When you set the default document, it's telling ASP.Net which files to treat as the 'default' page and in what order it should look for them. For example, if you put 'abc.html' on the top line, then that is the file you would see when you go to the root folder of your website. I believe those default documents apply to all folders and virtual directories on your site.
SeanRhone
12-19-2005, 07:06 AM
Ok, either I'm not under standing what your saying or your not understanding what my issue is.
So to recap my problem.
1) I created a new application under \htdocs\Base with an index.aspx file
2) The folder "Base" is set as a web application
3) When I go to my site www.mysite.com (http://www.mysite.com) I get the default screen that DASP put there.
4) I went under IIS Manager --> Default Docs and set the index.aspx as first and even rename the DASP index.aspx. When
I went to www.mysite.com (http://www.mysite.com) I get error messages.
Question: How do I get my web application to show when I go to www.mysite.com (http://www.mysite.com)?
Now, if you have answered this please forgive my ingnorance and not seeing it and maybe rephrase so that I might understand better.
Thanks again!
Sean
JerSchneid
12-19-2005, 07:14 AM
Why do you have that subfolder called 'Base'. You don't need to go out of your way and create a web application unless you want a SECOND application on your site.
I think what you probably want to do is move all of your files from 'Base' folder to your root web folder. Right now, to see your app you would go to:
www.yoursite.com/Base
And that would automatically display the index.aspx file you created. But if you don't want to have to type the 'Base' then move those files to the parent folder like I mentioned.
Does that make sense?
SeanRhone
12-19-2005, 07:45 AM
Make sense. Why then when I created my new app using VS 2003 it not let me create the app in the root and instead it puts it into the "Base"?
JerSchneid
12-19-2005, 07:50 AM
I'm not sure what you mean about VS forcing you to create a web directory. Is this on your local machine? If it is, you can just deploy to the root directory of your live site and almost everything will be the same as running in a virtual directory on your local machine.
If you're running WinXP, you can only have 1 root site (with Windows Server 2003 you can have multiple) which is why you may have to create a virtual directory for your new site on your local machine.
CK0505
12-21-2005, 10:57 AM
Hi Mate,
I may be on the completely wrong track, but if I want to point at another folder when the root of my site is accessed I have the following in the default.aspx file:
<meta http-equiv="refresh" content="0;url=http://podmusiccou.web126.discountasp.net/experience/default.aspx">
<html>
[b]
</body>
</html>
Don't know if that is of help. If you create apps in another folder you can point to it without any problems........ I think.
I'm new to this stuff.
joelnet
12-21-2005, 12:28 PM
SeanR said...
Make sense. Why then when I created my new app using VS 2003 it not let me create the app in the root and instead it puts it into the "Base"?
Remove your base directory. In vs.net go to file >> new project and select asp.net web application. Under location put http://<your_domain_name>/<-- make sure there is nothing after the / otherwise it will create this asa directory.
Joel Thoms
DiscountASP.NET
http://www.DiscountASP.NET
joelnet
12-22-2005, 09:05 AM
<meta http-equiv="refresh" content="0;url=http://podmusiccou.web126.discountasp.net/experience/default.aspx">
This is a client side redirect (meaning the browser will read this, wait 1 second, then redirect to new page).
The best way to redirect would be a server side redirect.
example:
<% Response.Redirect("/Base") %>
Joel Thoms
DiscountASP.NET
http://www.DiscountASP.NET
vBulletin® ©Jelsoft Enterprises Ltd.