I was asked to create a few ASP .NET pages for a company so they can access data from a db. I have done this and all works good. They have an HTML site on their server from where they want to link to the ASP .NET page. Their URL points to their html
site. Once I load my asp .net pages to IIS, how do they link to my ASP .NET page?
They could incorporate everything into the same site. They just need to enable the ASP.NET version you are using on the existing virtual folder. That way, they can just reference your site with relative URLs.
Otherwise, they could create an application in IIS as normal, using the ASP.NET version you used to create the pages. In their HTML site, they can add a folder, and have it redirect the user to the ASP.NET path.
Either way, the HTML pages could use relative or absolute URLs. An integrated site (option 1) would be easier to maintain, since everything would physically exist under a single folder.
---------------------------------------
MCP - Web Based Client Development .NET 2.0
Thanks, I understand the integrated option. I want to make sure I understand the second option:
ps2goat
Otherwise, they could create an application in IIS as normal, using the ASP.NET version you used to create the pages. In their HTML site, they can add a folder, and have it redirect the user to the ASP.NET path.
In their current html site, they create a folder (aspfolder). Then in their html, they can href to www.Htmlsite.com/aspfolder then what? How will it know to go to my login.aspx page in my virtual folder under default web site?
You can create a virtual folder in the html website (aspfolder), and have it point to the correct location where the asp pages are located.
From there, the virtual directory acts as its own application (as it should). You set the properties on that virtual folder like you would for a web site, including default pages, permissions, etc. If you are using standard login controls, just set your
site so that they need to login for every page, which should take them to the login page. Everything is just like it is with a stand-alone ASP.NET site. (I'm not sure about relative paths going above the virtual folder, though, as I've never had a need to
test that for this setup. If it's a problem, just use the full "http://www.Htmlsite.com" to redirect back to the html site.)
---------------------------------------
MCP - Web Based Client Development .NET 2.0
SteveInBeloi...
Member
171 Points
116 Posts
HTML site and ASP .NET on same web server.
Sep 12, 2007 06:46 PM|LINK
I was asked to create a few ASP .NET pages for a company so they can access data from a db. I have done this and all works good. They have an HTML site on their server from where they want to link to the ASP .NET page. Their URL points to their html site. Once I load my asp .net pages to IIS, how do they link to my ASP .NET page?
Thank you.
ps2goat
Star
10845 Points
1977 Posts
Re: HTML site and ASP .NET on same web server.
Sep 12, 2007 07:20 PM|LINK
They could incorporate everything into the same site. They just need to enable the ASP.NET version you are using on the existing virtual folder. That way, they can just reference your site with relative URLs.
Otherwise, they could create an application in IIS as normal, using the ASP.NET version you used to create the pages. In their HTML site, they can add a folder, and have it redirect the user to the ASP.NET path.
Either way, the HTML pages could use relative or absolute URLs. An integrated site (option 1) would be easier to maintain, since everything would physically exist under a single folder.
MCP - Web Based Client Development .NET 2.0
SteveInBeloi...
Member
171 Points
116 Posts
Re: HTML site and ASP .NET on same web server.
Sep 12, 2007 08:01 PM|LINK
Thanks, I understand the integrated option. I want to make sure I understand the second option:
In their current html site, they create a folder (aspfolder). Then in their html, they can href to www.Htmlsite.com/aspfolder then what? How will it know to go to my login.aspx page in my virtual folder under default web site?
Thanks.
ps2goat
Star
10845 Points
1977 Posts
Re: HTML site and ASP .NET on same web server.
Sep 12, 2007 10:20 PM|LINK
Sorry, I should have been more clear.
You can create a virtual folder in the html website (aspfolder), and have it point to the correct location where the asp pages are located.
From there, the virtual directory acts as its own application (as it should). You set the properties on that virtual folder like you would for a web site, including default pages, permissions, etc. If you are using standard login controls, just set your site so that they need to login for every page, which should take them to the login page. Everything is just like it is with a stand-alone ASP.NET site. (I'm not sure about relative paths going above the virtual folder, though, as I've never had a need to test that for this setup. If it's a problem, just use the full "http://www.Htmlsite.com" to redirect back to the html site.)
MCP - Web Based Client Development .NET 2.0
SteveInBeloi...
Member
171 Points
116 Posts
Re: HTML site and ASP .NET on same web server.
Sep 21, 2007 08:00 PM|LINK
We put everything under one domain, this solved all my worries.
thanks