Solved

Calling aspx Page Into My shtml

Posted on 2010-11-19
15
383 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 7
15 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 34178116
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
ID: 34178122
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
ID: 34178133
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 34178170
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
ID: 34178216
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 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 500 total points
ID: 34178255
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
ID: 34178259
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
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 34178280
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
ID: 34178302
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
ID: 34178313
Oh so that will work? The doctype and body tags are gone now, right?
0
 

Author Comment

by:A_AmericanELectric
ID: 34178338
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 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 500 total points
ID: 34178388
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 83

Expert Comment

by:Dave Baldwin
ID: 34178397
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
ID: 34178412
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 83

Expert Comment

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

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

734 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