Solved

Calling aspx Page Into My shtml

Posted on 2010-11-19
15
376 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 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

808 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