ASP + Access database

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
diegoarbe
Beginner
Beginner
Posts: 1
Joined: Wed Mar 29, 2006 6:48 pm
Location: Florida, USA
Contact:

ASP + Access database

Post by diegoarbe »

Has anyone successfully implemented the menu with asp and access database?

thanks!
drumbo
Advanced
Advanced
Posts: 20
Joined: Tue Dec 06, 2005 7:09 pm

Post by drumbo »

I run part of mine thru asp and MS Access
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Lots of folks using many different languages to work this system - .cfm, .asp, .php, etc. If you have ASP code in your data file, simply change the suffix to .asp, as menu_data.asp; i.e., nothing says it has to be .js.

Use the Search feature to find Topics.
John
bertvlit
Beginner
Beginner
Posts: 2
Joined: Sat Apr 08, 2006 5:24 pm

ASP + Access database

Post by bertvlit »

Has anyone a example using asp and access.
I used the example in the package but cannot getting it to work.
Setup the database, put the scripts in place and run, but nothing shows up.
When i lookup in "View Source" on the screen i see the menu items in the source.
But again nothing shows up.
Please help, thanks in advance.
drumbo
Advanced
Advanced
Posts: 20
Joined: Tue Dec 06, 2005 7:09 pm

Post by drumbo »

bervlit,

it is possible - I have used ASP and MSAccess on my site (although with the latest version - it broke). If you need help I can try and help - not an total expert tho
bertvlit
Beginner
Beginner
Posts: 2
Joined: Sat Apr 08, 2006 5:24 pm

Post by bertvlit »

Drumbo,
Thanks for the reply.
I made some progress myself.
I created the database and tables in MSSQL with the 'menu.sql' file.
I also loaded the tables with the CSV files
Then I noticed that the tables where a little bit different than I had in MSAccess.
So I exported the database to MSAccess and now I see somthing more comming on.
So there is some progress only I do not quit see how the tables are related to change the contents to get different menu items.
If you know the relationship between the tables that would be very handy as well.
Is there a smart and handy ASP prog to alter the menu. So I can change it to my menu items I like to use.
Regards,
Bert.
drumbo
Advanced
Advanced
Posts: 20
Joined: Tue Dec 06, 2005 7:09 pm

Post by drumbo »

I am afraid I don't know the relationship - mine was put together by a bit of a trial and error. Haven't seen any app although I believe Dreamweaver can be made to use the menu (thru templates) although this is way beyond my meagre skill level.

This is an example of part of mine - if it helps

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=30;
overflow="scroll";
style=HeadersStyle;
top=140;
aI("align=center;separatorsize=1;separatorcolor=#66CCFF;fontweight=bold;text=<%=header%>;type=header;");

<%
x=0
DO WHILE x <= ubound(split(session("MenuName"),","))
image = "image=/images/" + trim(split(session("Image_Name"),",")(x)) + ".gif;"
IF trim(split(session("menu_subitem"),",")(x)) = "0" THEN' changed here
response.write "aI(""" & image & "status=" & trim(split(session("MenuName"),",")(x)) & ";text=" & trim(split(session("MenuName"),",")(x)) & ";tooltip=" & trim(split(session("tooltip"),",")(x)) & ";url=javascript:mm_openUrl('" & trim(split(session("MenuURL"),",")(x)) & "?PGDesc=" & trim(split(session("MenuName"),",")(x)) & "');"");"
ELSE
response.write "aI(""" & image & "showmenu="& trim(split(session("menuname"),",")(x)) &";text=" & trim(split(session("MenuName"),",")(x)) & ";tooltip=" & trim(split(session("tooltip"),",")(x)) & ";"");"
'changed the first two sessions
END IF
set image= nothing
x=x+1

LOOP
%>
}
Post Reply