-
loss of navigation example b2a Grid/Form problem
I'm trying to use example b2a for my web site.
Only I want to be able to use dbMode= "both".
When I'm in Form mode and try to navigate back to
Grid mode I lose my ability to navigate. If I delete
the code that selects only certain catagories and run
the program it works fine. Can anybody help??
<% response.buffer = true %>
<HTML
<HEAD>
<title>The Sampler Catalog </title>
</HEAD>
<BODY BGCOLOR=white TEXT=GREEN LINK=BLUE ALINK=RED VLINK=BLUE>
<FONT FACE="Arial,Helvetica" COLOR=Black size=3>
<CENTER><B><font color="#008000">The Sampler Catalog</font></B><p>
</body>
<HR WIDTH=66%>
<%
bt = Request.QueryString("ASPdbBut_1050"
if bt <> "aspDBFilter" and left(bt,11) <> "aspDBgoForm" then
response.write("<CENTER> Click Item # to See Large Picture!</CENTER>"
end if
if left(bt,11) = "aspDBgoForm" then
response.write("<CENTER>Click the 'Grid' button to return to the Grid display</CENTER>"
end if
Set Mydb=Server.CreateObject("ASPdb.Pro"
MyDb.dbUnit = 1050
MyDb.dbmdb=Server.MapPath("products.mdb"
MyDb.dbColor = "7"
Mydb.dbMode="both"
MyDb.dbImageDir="images/"
Mydb.dbGridIndex=false
Mydb.dbButtonAnchor=false
Mydb.dbGridInc=5
MyDb.dbGridTableTag = "border=3 cellspacing=3 cellpadding=3"
MyDB.dbGridColSort=False
Mydb.dbSuppressMsg = true
MyDb.dbNavigation="bottom"
MyDb.dbNavigationItem="top,next,prev"
MyDb.dbNavigationIcon="std"
Mydb.dbMemoTextSize="15000"
Mydb.dbGridHideFlds="uniqueid,bigpic,cat"
Mydb.dbGridTableTag="BORDER=1 CELLSPACING=1 CELLPADDING=2"
Mydb.dbFormHideFlds="uniqueid,picture,cat"
Mydb.dbFormTableTag="BORDER=1 CELLSPACING=2 CELLPADDING=2 WIDTH=100%"
MyDb.dbSQL = "SELECT * FROM Products"
If Request("Catalog" <> " " then
MyDb.dbSQL="SELECT * FROM Products WHERE cat = '" & Request("catalog" & "'"
End If
mc = "Item,,,index; Picture,,<IMG WIDTH=75 HEIGHT=46 BORDER=0 "
mc = mc + "VSPACE=0 HSPACE=0 SRC=""inventory/#item#.jpg""></A>;"
mc = mc + "bigpic,,<IMG WIDTH=200 HEIGHT=175 SRC=""inventory/#item#.GIF""></A>;"
mc = mc + "Price,align=right,format=[currency];"
MyDb.dbMagicCell = mc
nmap = "item,Item #; bigpic,Big Picture"
Mydb.dbNameMap = nmap
Mydb.ASPdbPro
RECS = Mydb.dbRecordCount
%>
<%
if RECS = 0 then
%> <P><B><CENTER>No items in Category<B> <%
End if%>
</BODY>
</HTML>
-
loss of navigation example b2a Grid/Form problem (reply)
Hi Ralph,
Any chance we could see this problem "in action" on your web site? That would make it a lot clearer.
Alternatively, you could modify your example to show the problem with the std. NWind database and we could run it on our own system. That's the fastest way for us to see and suggest how to solve your problem.
Thanks,
John
------------
Ralph Holliday at 4/13/99 5:27:24 PM
I'm trying to use example b2a for my web site.
Only I want to be able to use dbMode= "both".
When I'm in Form mode and try to navigate back to
Grid mode I lose my ability to navigate. If I delete
the code that selects only certain catagories and run
the program it works fine. Can anybody help??
<% response.buffer = true %>
<HTML
<HEAD>
<title>The Sampler Catalog </title>
</HEAD>
<BODY BGCOLOR=white TEXT=GREEN LINK=BLUE ALINK=RED VLINK=BLUE>
<FONT FACE="Arial,Helvetica" COLOR=Black size=3>
<CENTER><B><font color="#008000">The Sampler Catalog</font></B><p>
</body>
<HR WIDTH=66%>
<%
bt = Request.QueryString("ASPdbBut_1050"
if bt <> "aspDBFilter" and left(bt,11) <> "aspDBgoForm" then
response.write("<CENTER> Click Item # to See Large Picture!</CENTER>"
end if
if left(bt,11) = "aspDBgoForm" then
response.write("<CENTER>Click the 'Grid' button to return to the Grid display</CENTER>"
end if
Set Mydb=Server.CreateObject("ASPdb.Pro"
MyDb.dbUnit = 1050
MyDb.dbmdb=Server.MapPath("products.mdb"
MyDb.dbColor = "7"
Mydb.dbMode="both"
MyDb.dbImageDir="images/"
Mydb.dbGridIndex=false
Mydb.dbButtonAnchor=false
Mydb.dbGridInc=5
MyDb.dbGridTableTag = "border=3 cellspacing=3 cellpadding=3"
MyDB.dbGridColSort=False
Mydb.dbSuppressMsg = true
MyDb.dbNavigation="bottom"
MyDb.dbNavigationItem="top,next,prev"
MyDb.dbNavigationIcon="std"
Mydb.dbMemoTextSize="15000"
Mydb.dbGridHideFlds="uniqueid,bigpic,cat"
Mydb.dbGridTableTag="BORDER=1 CELLSPACING=1 CELLPADDING=2"
Mydb.dbFormHideFlds="uniqueid,picture,cat"
Mydb.dbFormTableTag="BORDER=1 CELLSPACING=2 CELLPADDING=2 WIDTH=100%"
MyDb.dbSQL = "SELECT * FROM Products"
If Request("Catalog" <> " " then
MyDb.dbSQL="SELECT * FROM Products WHERE cat = '" & Request("catalog" & "'"
End If
mc = "Item,,,index; Picture,,<IMG WIDTH=75 HEIGHT=46 BORDER=0 "
mc = mc + "VSPACE=0 HSPACE=0 SRC=""inventory/#item#.jpg""></A>;"
mc = mc + "bigpic,,<IMG WIDTH=200 HEIGHT=175 SRC=""inventory/#item#.GIF""></A>;"
mc = mc + "Price,align=right,format=[currency];"
MyDb.dbMagicCell = mc
nmap = "item,Item #; bigpic,Big Picture"
Mydb.dbNameMap = nmap
Mydb.ASPdbPro
RECS = Mydb.dbRecordCount
%>
<%
if RECS = 0 then
%> <P><B><CENTER>No items in Category<B> <%
End if%>
</BODY>
</HTML>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|