Go Back   HTMLCenter Web Development Forums > Web Design and Development > Programming and Scripting

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 04-27-2008, 01:59 PM
Registered User
 
Join Date: Apr 2008
Posts: 2
ASP in DIV/CSS question

Hello All,

I am in the process of redesigning a web site I built for my company’s intranet a few years ago. I am not really a web designer so please forgive my ignorance.

The current site is designed to host about 50+ crystal reports and I use asp files to process the reports and display the results. I use two FRAMES in my site, one frame is a MENUFRAME which holds the links (navigation) for selecting the report and the MAINFRAME which is used to display the report. I use an anchor tag with the TARGET value set to the MAINFRAME to display the crystal report. Simple, and functional, but I want to move away from frames.

Can I do the same with CSS? I have a SPRY menu built to select the report and want to target the asp page to display in a DIV tag. Can I do that?

Maybe I can use a server side include?

I need some guidance and reference to a web site.

Thanks in advance!

Jim
Reply With Quote

  #2 (permalink)  
Old 04-27-2008, 05:14 PM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,397
First of all, CSS is used to control the design of a page. It does not control any content, at all.

Now, moving onto your question. You can certainly use ASP to do what you want, but it's not quite as easy as you would think.

As far as I know, you can't use ASP code within your include statements, so you would have to search for some ASP code to retrieve the information from the reports, then print it out on the screen.

Whereas, with PHP, you would simply do something like:
PHP Code:
include('report_'.$_GET['report'].'.txt'); 
You have to be a little more creative with ASP. As I said, you'll have to find some code that can read the information from a file into a variable. Then, you can use the Response.Write command to print that information out on the screen.

I'm not sure what format the crystal reports come in, so I don't know which code to point you toward, unfortunately.
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
  #3 (permalink)  
Old 04-27-2008, 07:10 PM
Registered User
 
Join Date: Apr 2008
Posts: 2
curtiss,

Thanks for setting me straight on CSS, I will continue to explorer other options it handle my navigation.

Cheers!

Jim
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic PHP question Leprakawn Programming and Scripting 8 02-06-2008 06:30 AM
ASP/Access Question curtiss Databases 1 04-03-2007 11:47 AM
Javascript Code Question O~Snapple Programming and Scripting 1 02-16-2007 01:36 PM
general iframes question ice77ice Programming and Scripting 3 04-05-2006 06:00 PM
adding variables question -easy (for those in the know!) highab Programming and Scripting 0 01-24-2006 06:30 AM


All times are GMT -5. The time now is 02:53 AM.

 
KickApps
Clicky Web Analytics


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter