-
trouble with example 14
Help!!!!
I feel really stupid, but I can't understand the contents of example 14 and can't seem to get the thing to work.
I think that I managed to export fields to session variables, but I really don't understand how to access the session vairiables correctly.
the "ASPDB_n_Fieldname" is making my brain hurt. Specifically that is the dbUnit number??????? How do I know which one to use?
Also can I put a field number into this thing instead of a field name???
-
trouble with example 14 (reply)
Wayne, this is an easy format to use:
Field1=1
Field2=CARS
Field3=3
Field4=BRAND
-----------
dbunit=1
dbexportflds=0,1,2,3
dbgriddisplayflds=-1
-----------
<% = session(aspdb_1_1) %>
<% = session(aspdb_1_CARS) %>
<% = session(aspdb_1_3) %>
<% = session(aspdb_1_BRAND) %>
-
trouble with example 14 (reply)
On 1/26/99 3:07:30 PM, Kenneth wrote:
> Wayne, this is an easy format to
> use:
I got that and thanks. however I can not seem to get the export to session variables to function correctly.
here is some code for a plant database.
-------------------------------------------
sessionid = <%=session.sessionid%> <BR>
<%
Set MyDb = Server.CreateObject("AspDB.Pro" ' Create the ASP-db object
DB=Server.MapPath("PHOTOS.mdb" ' Point to the database file
MyDb.dbQuickProps="14;"& DB & ";[plants];form;4,auto;std" 'open the file
MyDb.dbFormDisplayFlds="1,11,12,13,14,16,17 4; 'Only show these fields
MyDb.dbExportFlds = "1,11,12,13,14,16,17" 'Export them!
MyDb.dbFormDisplayFlds = -1 'Hide all the fields from displaying
MyDb.dbImageDir="images/" 'Point to the "images" directory
MyDb.dbStatusBar = false 'Turn off the status bar
MyDb.dbNavigationItem="prev,next" 'Only show these 2 buttons
MyDb.ASPdbPro 'Display it!
%>
<p>Background information on this thing<% = Session("ASPdb_14_1" %>
<% = Session("ASPdb_14_12" %><br>
<img src="<% = Session(ASPdb_14_13) %>"></p>
-
trouble with example 14 (reply)
Hi Wayne,
Try replacing the field NUMBER with the field NAME when displaying the session variables. We export them by name. In our example A14a, you'll notice that we display:
Session("ASPdb_14_FirstName"
even though we simply export "1,2,3,4..."
That should do it!
John
On 1/28/99 11:21:07 AM, wayne twitchell wrote:
> On 1/26/99 3:07:30 PM, Kenneth wrote:
> Wayne, this is an easy format to
>
> use:
I got that and thanks. however I can not seem to get the export
> to session variables to function correctly.
here is some code for a plant
> database.
-------------------------------------------
sessionid =
> <%=session.sessionid%> <BR>
<%
Set MyDb =
> Server.CreateObject("AspDB.Pro" ' Create the ASP-db object
>
DB=Server.MapPath("PHOTOS.mdb" ' Point to the database file
>
MyDb.dbQuickProps="14;"& DB & ";[plants];form;4,auto;std"
> 'open the file
MyDb.dbFormDisplayFlds="1,11,12,13,14,16,17 4;
> 'Only show these fields
MyDb.dbExportFlds =
> "1,11,12,13,14,16,17" 'Export them!
MyDb.dbFormDisplayFlds =
> -1 'Hide all the fields from
> displaying
MyDb.dbImageDir="images/" 'Point to the
> "images" directory
MyDb.dbStatusBar = false 'Turn off the
> status bar
MyDb.dbNavigationItem="prev,next" 'Only show these
> 2 buttons
MyDb.ASPdbPro 'Display it!
%>
<p>Background information
> on this thing<% = Session("ASPdb_14_1" %>
<% =
> Session("ASPdb_14_12" %><br>
<img src="<% = Session(ASPdb_14_13) %>"></p>
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
|
|