Calling aspx Page Into My shtml

I'm building a new site for the service department I'm starting for my company. I have service scheduling software that uses .NET. The customer has the ability to check thier order, comment on their order and print various forms like quote and invoice. I need my customer's experience to stay within the new site for the duration.
The web connector has placed a virtual directory in my IIS with a root of "Program Files/Ground Zero Tech-Works Inc/AyaNovaWBI6". I can browse directly to the login page from here: http://www.apelectricservices.com/AyaNovaWBI6/login.aspx and I can place it in an iframe and it works but I cannot seem to call this same page with an SSI (<!--#include virtual="/AyaNovaWBI6/login.aspx" -->) without the following message which is the one and only line of text in this file when I open it in dreamweaver:"This is a marker file generated by the precompilation tool, and should not be deleted! ". It seems I have a little more flexibility with"
"http://apelectricservices.com/AyaNovaWBI6/login.aspx?ReturnUrl=%2fAyaNovaWBI6%2fbin%2flogin.aspx.cdcab7d2.compiled"" and I can open it in dreamweaver but still no luck with the display.
Currently http://www.apelectricservices.com/index.shtml has a working nav button called "TEK" which links to login.shtml that contains the <iframe> to login.aspx but what I would really like to do is call it directly into index.shtml replacing any content in the main table but I have no idea how to do that. You can see whats hapening using credentials :abc, abc
A_AmericanELectricAsked:
Who is Participating?
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
I don't think that is going to work at all.  The aspx page has a lot of things in it that won't work on your shtml page.  But the aspx page/program needs them to function properly.
0
 
A_AmericanELectricAuthor Commented:
so what  should I do? can I somehow reference the virtual dir and work from there? Did you go there and see whats happening?
0
 
A_AmericanELectricAuthor Commented:
actually I'm not sure what you mean Dave. I can go to the pages all day long from my site root and they work fine. They just don't have my header, footer, etc.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Dave BaldwinFixer of ProblemsCommented:
Yes, I went and looked at the source for the aspx page.  As many ASP.NET pages, it is written as one big HTML form that uses a lot of javascript to glue it together.  It also probably has 'code behind' files that work with the aspx page to display the tickets from the database.

I also looked at http://www.apelectricservices.com/index.shtml and it's got formatting problems.  It looks like you 'included' another page in the middle including another DOCTYPE and <body> tag.  That can cause your page not to display properly.

I am saying that it would be difficult to combine the pages.  You would have to rewrite the aspx pages because that's where the functions are performed.
0
 
A_AmericanELectricAuthor Commented:
so  I guess my only choice is iframe? because it seems to work ok but I'm to understand its not very cross-browser compadable and is even treated like a popup in some cases. I will fix that error now but I'm basically just getting started so your right- theres a lot of house cleaning to do already.
0
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
I would leave it in the frame.  Frames are supported by all browsers that I know of so I don't know who would tell you that.  You would have to change over to ASP.NET and Visual Studio to integrate your headers and footers into their pages.  What they are doing can't be done in your 'shtml' pages.
0
 
A_AmericanELectricAuthor Commented:
Ok I changed the SSI to a .txt and removed all of the links but what if I went through all of the compiled pages in the bin folder and added
<!--#include virtual="/template.shtml" --> which is nothing but java links in a table
 (   <script language="JavaScript" src="Includes/header.js" type="text/javascript"></script>
)
that compiles my header, nav menu and footer.?
0
 
Dave BaldwinFixer of ProblemsCommented:
I don't know enough about your page structure to answer directly but that sounds fine.  What I was referring to was the extra DOCTYPE and <body> tags in the middle of the page.  An 'included' page does not (and should not) be a complete page.  It should only contain what is needed at the place it is included.  If "template.shtml" contains all your common code that you need for each page, then you're set.
0
 
A_AmericanELectricAuthor Commented:
Okay Dave I'm hard headed but I believe you. At least I know you will give it to me straight instead of sending me on a chase. Keep our eyes open for my posts because more are forthcoming and they are probably no brainers for you.
To tell you the truth- AyaNova actually is not doing all that I need to do so I will need to find ways to add the functionality I need for the customer such as such as schedule their own service call (like we order our own pizza how we want it) and pay for their call all on the site. I also want to be able to guarantee arrival time and maybe have them track it like we do our Fedex packages.
0
 
A_AmericanELectricAuthor Commented:
Oh so that will work? The doctype and body tags are gone now, right?
0
 
A_AmericanELectricAuthor Commented:
Here is the code for login.aspx.cdcab7d2.compiled

<?xml version="1.0" encoding="utf-8"?>
<preserve resultType="3" virtualPath="/AyaNovaWBI/Login.aspx" hash="39e8e2c5c" filehash="c8f53f2e3b31871f" flags="110000" assembly="GZTW.AyaNovaWBI" type="ASP.login_aspx">
  <filedeps>
    <filedep name="/AyaNovaWBI/Login.aspx" />
    <filedep name="/AyaNovaWBI/Login.aspx.cs" />
  </filedeps>
</preserve>
theres no way to put my include in file like this, right? It looks like XML to me.
Is there a way to use template.cfm as a kind of stationary for every file coming out of the ayanova virtual directory?
0
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
The big problem is that the ASP.NET pages and the code behind like "/AyaNovaWBI/Login.aspx.cs" are expecting the page (in the frame) to be constructed in a certain way and contain specific elements that are manipulated to display the scheduling.  I don't know and thus can't recommend that you try to 'include' your files in theirs.  Unlike HTML pages that pretty much stand by themselves, aspx pages and their support pages are built to work together.
0
 
Dave BaldwinFixer of ProblemsCommented:
Yes, the doctype and body tags are gone now.  If you want the AyaNova code to do more you will need them or another experienced ASP.NET programmer to change it.  It is not just HTML.
0
 
A_AmericanELectricAuthor Commented:
Ok thanks! And I was thinking I need to add these other functions using other sources. Do you know of a place where I can get the source code for like a shopping cart and order tracking combined? I will accept you answer above now. Thanks Dave!
0
 
Dave BaldwinFixer of ProblemsCommented:
There are a number of shopping carts around.  Look on Sourceforge.net.  Thanks for the points.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.