Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Web Database Development

Guest
Jul 10, 2007 Jul 10, 2007

Copy link to clipboard

Copied

I have been trying to Work from the book Web database Development (Step by Step) .net Edition 2003

I have followed the code to the letter. However, I am having a problem. I choose to use dreamweaver instead of Microsoft visual studio 2003, which is installed on my machine.

I have been getting this error messege.

===================================error Message=========================================

Server Error in '/' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30002: Type 'OleDbConnection' is not defined.

Source Error:



Line 6: <script runat="server">
Line 7: Sub Page_Load(sender As Object, e As EventArgs)
Line 8: Dim conClsf As OleDbConnection
Line 9: Dim cmbMbrs As OleDbCommand
Line 10: Dim rdrMbrs As OleDataReader


Source File: C:\Inetpub\wwwroot\asp testing\members.aspx Line: 8

=========================================error message========================================

=========================================here is my code============================================
<%@ Page Language="vb" Debug="true" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb%>
<html>
<head>
<script runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
Dim conClsf As OleDbConnection
Dim cmbMbrs As OleDbCommand
Dim rdrMbrs As OleDataReader
conClsf = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & server.mappath("classified.mdb") & ";")
conClsf.Open
cmdMbrs = New OleDbCommand("select * from members order by memberid", conClsf)
rdrMbrs =cmdMbrs.ExecuteReader
gridMbrs.DataSource = rdrMbrs
gridMbrs.DataBind
rdrMbrs.Close
cmdMbrs.Dispose
conClsf.Close
End Sub
</script>
<title>Classified Ad Members</title>
</head>
<body>
<h1>Classifid Ad Members</h1>
<asp:DataGrid ID="gridMbrs" runat="server" />
</asp:DataGrid>
</body>
</html>
==============================================end my code==========================================
Any help in correcting this matter would be greatly appreciated
TOPICS
Server side applications

Views

472
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 11, 2007 Jul 11, 2007

Copy link to clipboard

Copied

First off, Dreamweaver even CS3, sucks at ASPNET, which is the technology this is using.

I think Visual Studio 2003 is using ASPNET 1.1, The current version of this technology is ASPNET 2.0, which is easier to use

What you can do is download free of charge Microsoft Visual Web Developer from Microsoft, you'll need a few things - .NET framework 2.0 and MS SQL Server 2005 Express to make everything work better.

I think you'll see this as a better alerternative to Dreamweaver and all of this is free from Microsoft.

If this were anyother technology, even traditional ASP, I would say stick with Dreamweaver, but not with ASPNET

MS have also released something called Expression Web which is great at ASPNET for putting front-ends on apps developed using ASPNET

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 11, 2007 Jul 11, 2007

Copy link to clipboard

Copied

Thanks for the Information I saw this web expression in Best Buy. However, I never got more information. I think that I will look in to it more.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 11, 2007 Jul 11, 2007

Copy link to clipboard

Copied

That and keep your eyes on Microsoft's website, they are always doing some
promotion where you can get VS 2005 Standard for free. That's how I got
mine.

Definately check out Expression Web, works great with VS and VWD for the
front end of things.

Rob

"Smooth Skater" <webforumsuser@macromedia.com> wrote in message
news:f73o1u$p2f$1@forums.macromedia.com...
> Thanks for the Information I saw this web expression in Best Buy. However,
> I never got more information. I think that I will look in to it more.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 11, 2007 Jul 11, 2007

Copy link to clipboard

Copied

I would also not bother tyring to use the 1.1 framework. Go straight to 2.0
as the database binding routines are a lot simplier for most applications

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"Smooth Skater" <webforumsuser@macromedia.com> wrote in message
news:f73o1u$p2f$1@forums.macromedia.com...
> Thanks for the Information I saw this web expression in Best Buy. However,
> I never got more information. I think that I will look in to it more.


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 15, 2007 Jul 15, 2007

Copy link to clipboard

Copied

LATEST
I have framework 1.1 and 2.0 on my system can I remove 1.1 without causing problems for 2.0?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines