Solved

Calling aspx Page Into My shtml

Posted on 2010-11-19
15
370 Views
Last Modified: 2013-11-18
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
0
Comment
Question by:A_AmericanELectric
  • 8
  • 7
15 Comments
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
Comment Utility
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
 

Author Comment

by:A_AmericanELectric
Comment Utility
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
 

Author Comment

by:A_AmericanELectric
Comment Utility
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
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
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
 

Author Comment

by:A_AmericanELectric
Comment Utility
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
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 500 total points
Comment Utility
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
 

Author Comment

by:A_AmericanELectric
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
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
 

Author Comment

by:A_AmericanELectric
Comment Utility
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
 

Author Comment

by:A_AmericanELectric
Comment Utility
Oh so that will work? The doctype and body tags are gone now, right?
0
 

Author Comment

by:A_AmericanELectric
Comment Utility
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
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 500 total points
Comment Utility
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
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
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
 

Author Comment

by:A_AmericanELectric
Comment Utility
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
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
There are a number of shopping carts around.  Look on Sourceforge.net.  Thanks for the points.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now