Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Does our web server support virtual directory?
Royhwa
#1 Posted : Tuesday, August 1, 2006 7:52:28 AM(UTC)
Groups: Member
Joined: 6/29/2006(UTC)
Posts: 10
Location: China

I have to set the url to be http://localhost/DDD/ not http://localhost/. Just like IIS virtual directory.

Can i do this using Casssini?
Ultidev Team
#2 Posted : Tuesday, August 1, 2006 10:19:09 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi there!

Although it's not possible to have an ASP.NET application in the non-root folder in UltiDev Cassini (it's possbile to have a static HTML web site as it does not have the Bin folder), we may help you making your application work in the root folder if you let us know why your application has to be in the subfolder.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Royhwa
#3 Posted : Tuesday, August 1, 2006 6:39:21 PM(UTC)
Groups: Member
Joined: 6/29/2006(UTC)
Posts: 10
Location: China

Thank you!

My project is a sub-system of a system which has many sub-systems.
My porject has two version.
One is for IIS. http://localhost/DDD/Enter.aspx
Another is for Cassini. http://localhost/Enter.aspx

Enter.aspx is the enter of prject which will be used in other sub-systems.
That is:
<a href="http://localhost/DDD/Enter.aspx">Go to XXX system</a>

Now, i add a folder named DDD in my VS2003 project and a aspx file named Enter.aspx in DDD folder.

The content of Enter.aspx in DDD folder is:
Response.Redirect("../Enter.aspx");

It works.

But i want to know other solutions.
Ultidev Team
#4 Posted : Tuesday, August 1, 2006 7:00:58 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi!

You've done it right - using relative links is much better than absolute ones. But all reusable pieces, like user controls, need to have URLs relative to application's root, becasue these controls may be embedded in pages at different nesting levels. For that in ASP.NET 2.0 you could use '~' as a prefix for URLs on your ASPX pages, like "~/Images/image.jpg". At runtime tilda gets replaced with application's root. Under IIS it would be "/ddd", and under Cassini it would be just "/". In ASP.NET 1.1 you may want to use Request.ApplicationPath property as a base for all your URLs, becasue it too returns either "/ddd" if application is in virtual folder, or "/" if it's a root folder.

This all, however, is not something specific to Cassini. The same issues arise if you publish your web application to IIS root folder.

Regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.