Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 28th, 2010, 09:21 AM
Authorized User
Points: 287, Level: 5
Points: 287, Level: 5 Points: 287, Level: 5 Points: 287, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2006
Location: Colorado Springs, CO
Posts: 60
Thanks: 1
Thanked 0 Times in 0 Posts
Default CSS and ASP Classic Together?

So I've created a CSS-based menu that looks like this:

<div class="mymenu">
<div class="header"><a href="index.html">First</a></div>
<div class="submenu">
index.asp
<br />
</div>
<div class="silverheader"><a href="index2.html" >Second</a></div>
<div class="submenu">
index2.asp<br />
</div>
</div>

However, CSS has no idea how to handle ASP links or references. So, is it posslble to call ASP from CSS?

Thanks!
Dale
 
Old May 28th, 2010, 03:08 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

???? CSS doesn't "call" anything. CSS is *strictly* the STYLES that are applied to HTML objects.

And the code you show there doesn't have any "ASP links or references".

So I have no idea what you are talking about.
 
Old May 28th, 2010, 07:29 PM
Authorized User
Points: 287, Level: 5
Points: 287, Level: 5 Points: 287, Level: 5 Points: 287, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2006
Location: Colorado Springs, CO
Posts: 60
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Old Pedant View Post
???? CSS doesn't &quot;call&quot; anything. CSS is *strictly* the STYLES that are applied to HTML objects.

And the code you show there doesn't have any &quot;ASP links or references&quot;.

So I have no idea what you are talking about.
Pardon my ignorance, oh mighty one. If you look at the fourth line down in the example, there it is. Like I said, this creates a collapsing menu and I'd like to populate the contents with the results of an ASP query. If this is the wrong forum, just say so.
 
Old May 29th, 2010, 04:37 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Quote:
I'd like to populate the contents with the results of an ASP query.
Ahhh...you didn't say that in the first post! I thought maybe all you wanted was to do something like <a href="index.asp"> which you didn't even need ASP coding to do.

Okay, this isn't hard. You just have to do it bass-ackwards of the way you were approaching it. You have to use ASP to *create* the CSS. Or perhaps its clearer to say you embed the HTML in the ASP code and then style the HTML via CSS.

You would almost surely want to do this with a single ASP file, not multiple ones. (You could use #include to involve multiple ASP files, but I see little advantage in doing so.)

So what do the individual submenu items look like??
Code:
<div class="mymenu">
    <div class="header"><a href="index.html">First</a></div>
        <div class="submenu">???? what HTML goes here ???</div><br/>
        <div class="submenu">???? and I assume there might be any number of submenus ???</div><br/>
        <div class="submenu">...</div><br/>
        <div class="submenu">...</div><br/>
        <div class="submenu">...</div><br/>
    </div>
If you can show an example of a "fully loaded" menu with multiple submenu's we could help you convert it to ASP code.

And, yes, I do this all the time. Truly not hard. It's mainly a matter of taking an HTML page, changing the name to ".asp", and plugging in appropriate DB-based coding.

But start from HTML. Much easier.
 
Old May 30th, 2010, 08:17 AM
Authorized User
Points: 287, Level: 5
Points: 287, Level: 5 Points: 287, Level: 5 Points: 287, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2006
Location: Colorado Springs, CO
Posts: 60
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks! I'll give it a try. Dale




Similar Threads
Thread Thread Starter Forum Replies Last Post
classic ASP to ASP.NET 2.o XML coding rupen XML 10 May 18th, 2010 03:09 AM
classic ASP to ASP.NET 2.o XML coding rupen ASP.NET 2.0 Basics 0 May 14th, 2010 07:25 AM
Converting Classic Asp to Asp.Net 2.0 vikaspatyal ASP.NET 2.0 Professional 2 October 7th, 2007 06:33 PM
classic asp with asp.net on same iis bostonrose .NET Framework 2.0 6 January 10th, 2007 12:38 PM
css validator that accepts Classic ASP within in crmpicco CSS Cascading Style Sheets 1 March 16th, 2006 07:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.