Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-26-2012, 06:28 PM   PM User | #1
sixrfan
Regular Coder

 
Join Date: Aug 2009
Posts: 395
Thanks: 116
Thanked 0 Times in 0 Posts
sixrfan has a little shameless behaviour in the past
custom sidebars, has something to do with mapping?

hi, i'm looking to take over a website where the previous person left off. i have no experience with aspdotnet shopping cart software so bear with me if my questions seem amateurish.

we are currently running version 8.0 but plan to upgrade to the latest version, 9.3.1.

our site sells menswear. our objective is to create custom sidebars that are only relevant to whatever product category the website visitor is on. for instance, when a visitor is on a shoe product page or shoe category page, we want a list in the sidebar of all the shoe subcategories. and when someone is on a tie product page or tie category page, we want a sidebar list of all tie subcategories to appear. is that possible? if so, how easy/difficult is that to setup? i think i has something to do with "mapping" though I'm not entirely sure what mapping is just yet.

please advise. thanks in advance!
sixrfan is offline   Reply With Quote
Old 10-26-2012, 08:31 PM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,556
Thanks: 62
Thanked 4,055 Times in 4,024 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
??? Will the sidebar be *PART* of the ASP.NET page or will it be an <iframe> and so semi-independent of the page?

If it is part of the page, why is there even a question? The category of the page is "shoes" so you simply use a SQL query that gets all subcategories of "shoes". If the category is "pants", you get subcategories of "pants".

All this means is that your DB design has to be correct, so that your SQL statement becomes
Code:
String SQL = "SELECT * FROM subcategories WHERE category = " + currentPageCategory;
(tha't's C#. VB.Net nearly identical)
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Users who have thanked Old Pedant for this post:
sixrfan (10-26-2012)
Reply

Bookmarks

Tags
aspdotnet, mapping

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:39 PM.


Advertisement
Log in to turn off these ads.