PC Review


Reply
Thread Tools Rate Thread

ASP Beginner Using FP

 
 
=?Utf-8?B?TWlrZSBD?=
Guest
Posts: n/a
 
      13th Feb 2006
Added this to the code window trying to see if I can talk to the db and get
information out of it. What am I missing ?

<%
Dim oRSv, strconn
strconn = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\inetpub\wwwroot\PracticeOne2\fpdb\ArmadaWBv110.mdb"
set oRSv = Server.CreateObject("ADODB.Connection")
oRSv.open strconn

oRSv.open "tbl_ClosedOrders"
oRSv.MoveFirst
Response.Write oRSv("Comcode") & ", "
oRSv.MoveNext
oRSv.Close
%>
--
Mike C
 
Reply With Quote
 
 
 
 
Stefan B Rusynko
Guest
Posts: n/a
 
      13th Feb 2006
If you are a beginner and don't know ASP and DB connections try starting with the FP DBRW
Otherwise learn about DB connections (ADO) and ASP at
http://www.w3schools.com/ado/default.asp
http://www.w3schools.com/asp/default.asp

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPa...3/Default.aspx
_____________________________________________


"Mike C" <(E-Mail Removed)> wrote in message news:B71CEFC4-F289-4E17-B6CD-(E-Mail Removed)...
| Added this to the code window trying to see if I can talk to the db and get
| information out of it. What am I missing ?
|
| <%
| Dim oRSv, strconn
| strconn = "Provider=Microsoft.Jet.OLEDB.4.0;Data
| Source=c:\inetpub\wwwroot\PracticeOne2\fpdb\ArmadaWBv110.mdb"
| set oRSv = Server.CreateObject("ADODB.Connection")
| oRSv.open strconn
|
| oRSv.open "tbl_ClosedOrders"
| oRSv.MoveFirst
| Response.Write oRSv("Comcode") & ", "
| oRSv.MoveNext
| oRSv.Close
| %>
| --
| Mike C


 
Reply With Quote
 
=?Utf-8?B?TWlrZSBD?=
Guest
Posts: n/a
 
      13th Feb 2006
Actually I've visited that site. What I do not understand is how FP
communicates via ASP with Access using the code window. That is the true
nature of the question. Once I get that secret I can handle the rest

--
Mike C


"Stefan B Rusynko" wrote:

> If you are a beginner and don't know ASP and DB connections try starting with the FP DBRW
> Otherwise learn about DB connections (ADO) and ASP at
> http://www.w3schools.com/ado/default.asp
> http://www.w3schools.com/asp/default.asp
>
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> To find the best Newsgroup for FrontPage support see:
> http://www.frontpagemvps.com/FrontPa...3/Default.aspx
> _____________________________________________
>
>
> "Mike C" <(E-Mail Removed)> wrote in message news:B71CEFC4-F289-4E17-B6CD-(E-Mail Removed)...
> | Added this to the code window trying to see if I can talk to the db and get
> | information out of it. What am I missing ?
> |
> | <%
> | Dim oRSv, strconn
> | strconn = "Provider=Microsoft.Jet.OLEDB.4.0;Data
> | Source=c:\inetpub\wwwroot\PracticeOne2\fpdb\ArmadaWBv110.mdb"
> | set oRSv = Server.CreateObject("ADODB.Connection")
> | oRSv.open strconn
> |
> | oRSv.open "tbl_ClosedOrders"
> | oRSv.MoveFirst
> | Response.Write oRSv("Comcode") & ", "
> | oRSv.MoveNext
> | oRSv.Close
> | %>
> | --
> | Mike C
>
>
>

 
Reply With Quote
 
=?Utf-8?B?TWlrZSBD?=
Guest
Posts: n/a
 
      13th Feb 2006
I re checked that web and found the solution to my problem. thanks, I must of
missed this before.
--
Mike C


"Stefan B Rusynko" wrote:

> If you are a beginner and don't know ASP and DB connections try starting with the FP DBRW
> Otherwise learn about DB connections (ADO) and ASP at
> http://www.w3schools.com/ado/default.asp
> http://www.w3schools.com/asp/default.asp
>
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> To find the best Newsgroup for FrontPage support see:
> http://www.frontpagemvps.com/FrontPa...3/Default.aspx
> _____________________________________________
>
>
> "Mike C" <(E-Mail Removed)> wrote in message news:B71CEFC4-F289-4E17-B6CD-(E-Mail Removed)...
> | Added this to the code window trying to see if I can talk to the db and get
> | information out of it. What am I missing ?
> |
> | <%
> | Dim oRSv, strconn
> | strconn = "Provider=Microsoft.Jet.OLEDB.4.0;Data
> | Source=c:\inetpub\wwwroot\PracticeOne2\fpdb\ArmadaWBv110.mdb"
> | set oRSv = Server.CreateObject("ADODB.Connection")
> | oRSv.open strconn
> |
> | oRSv.open "tbl_ClosedOrders"
> | oRSv.MoveFirst
> | Response.Write oRSv("Comcode") & ", "
> | oRSv.MoveNext
> | oRSv.Close
> | %>
> | --
> | Mike C
>
>
>

 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      13th Feb 2006
Hi Mike,

> Actually I've visited that site. What I do not understand is how FP
> communicates via ASP with Access using the code window. That is the true
> nature of the question. Once I get that secret I can handle the rest


First, you need to understand the difference between the FrontPage program,
and what it is used to create. This is much like the difference between Word
and a Word document. FrontPage is a program for creating web sites and web
pages.

The reason I say this is that you're asking about 2 different things:

FrontPage communicates with a database when you use the FrontPage database
wizards to create a database application in a web site (a set of ASP pages).
FrontPage doesn't use ASP to do this. ASP is a web server application for
use by web pages. There is a big difference between a desktop application
talking to a database and a web page talking to a database. But the
FrontPage program *does" talk to a database when you use it to create web
pages that talk to a database.

Now, these ASP pages are created by FrontPage, and they communicate with a
database using ASP, which uses a scripting language for its functionality.
What FrontPage does when it creates ASP pages for you is to write the ASP
script in the pages for you. So, FrontPage talks to the database at design
time, and the ASP page talks to the database at run time.

I hope that makes it more clear. When you write your own ASP, you don't use
FrontPage to do it (other than typing the code in, in the FrontPage Code
view). When you write your own ASP, FrontPage doesn't communicate with the
database at all.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.


"Mike C" <(E-Mail Removed)> wrote in message
news:BD06C36E-6471-4079-93B1-(E-Mail Removed)...
> Actually I've visited that site. What I do not understand is how FP
> communicates via ASP with Access using the code window. That is the true
> nature of the question. Once I get that secret I can handle the rest
>
> --
> Mike C
>
>
> "Stefan B Rusynko" wrote:
>
>> If you are a beginner and don't know ASP and DB connections try starting
>> with the FP DBRW
>> Otherwise learn about DB connections (ADO) and ASP at
>> http://www.w3schools.com/ado/default.asp
>> http://www.w3schools.com/asp/default.asp
>>
>> --
>>
>> _____________________________________________
>> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
>> "Warning - Using the F1 Key will not break anything!" (-;
>> To find the best Newsgroup for FrontPage support see:
>> http://www.frontpagemvps.com/FrontPa...3/Default.aspx
>> _____________________________________________
>>
>>
>> "Mike C" <(E-Mail Removed)> wrote in message
>> news:B71CEFC4-F289-4E17-B6CD-(E-Mail Removed)...
>> | Added this to the code window trying to see if I can talk to the db and
>> get
>> | information out of it. What am I missing ?
>> |
>> | <%
>> | Dim oRSv, strconn
>> | strconn = "Provider=Microsoft.Jet.OLEDB.4.0;Data
>> | Source=c:\inetpub\wwwroot\PracticeOne2\fpdb\ArmadaWBv110.mdb"
>> | set oRSv = Server.CreateObject("ADODB.Connection")
>> | oRSv.open strconn
>> |
>> | oRSv.open "tbl_ClosedOrders"
>> | oRSv.MoveFirst
>> | Response.Write oRSv("Comcode") & ", "
>> | oRSv.MoveNext
>> | oRSv.Close
>> | %>
>> | --
>> | Mike C
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pls Help Beginner OG515@webtv.net Printers 1 5th May 2005 10:44 PM
No Class at ALL!!! beginner/beginner question =?Utf-8?B?S3VydCBTY2hyb2VkZXI=?= Microsoft ASP .NET 7 3rd Feb 2005 02:47 PM
Help for a beginner!.....PLEASE??? Tricia Microsoft Excel Misc 1 15th Jan 2004 06:51 PM
I'm a beginner milli reyes Microsoft Access Getting Started 2 15th Aug 2003 04:48 PM
Beginner Help.... Mike Bell Microsoft ASP .NET 1 12th Jul 2003 07:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:16 AM.