ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 8th, 2002, 12:31 PM
Nauman Nauman is offline
Twenty Seven
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Multan, Pakistan
Posts: 103 Nauman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 33 m 2 sec
Reputation Power: 7
Send a message via ICQ to Nauman
VS.NET is Piece of Cake...

Hello...

I used to write ASP.NET App in Web Metrix. Now I've purchased VS.NET but I've got some hard time with it. Actually everything works fine but the problem is that it displays error in <filename>.aspx.vb at lines:

1. Dim objConnection as new OLEDBConnection (strConnection)
2. Dim objAdapter as new OLEDBDataAdapter (strSQL, objConnection)

Error says that:

1. OLEDBConnection is not defined
2. OLEDBAdapter is not Defined

I've also declared in <filename>.aspx page:

<%@ import namespace = "System.Data" %>
<%@ import namespace = "system.data.oledb" %>

Would anyone plz help me!

_____________
Thanks...
Nauman Ahmed

Reply With Quote
  #2  
Old November 8th, 2002, 01:59 PM
CharAznable CharAznable is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 1 CharAznable User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I think the namespace and class name are case sensitive.

<%@ import namespace = "system.data.oledb" %>

should be

<%@ import namespace = "System.Data.OleDb" %>

and

Dim objConnection as new OLEDBConnection (strConnection)
Dim objAdapter as new OLEDBDataAdapter (strSQL, objConnection)

should be

Dim objConnection as new OleDbConnection (strConnection)
Dim objAdapter as new OleDbDataAdapter (strSQL, objConnection)

Don't know is it the case for VB.NET. I'm using C#.

Dennis

Last edited by CharAznable : November 8th, 2002 at 02:02 PM.

Reply With Quote
  #3  
Old November 8th, 2002, 07:27 PM
Nauman Nauman is offline
Twenty Seven
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Multan, Pakistan
Posts: 103 Nauman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 33 m 2 sec
Reputation Power: 7
Send a message via ICQ to Nauman
Still

Hello Dennis...

VB.NET is not case sensative. Also I used to write the same code hundreds of time in Web Metrix and it works fine. But in VS.NET it doesnt work. Any other ideas...

_____________
Thanks...
Nauman Ahmed

Reply With Quote
  #4  
Old November 8th, 2002, 09:38 PM
Kamran Ellahi Kamran Ellahi is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Karachi-Pakistan
Posts: 2 Kamran Ellahi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Check project refrences

hi
try setting up your project refrences
Take Care

Kami

Reply With Quote
  #5  
Old November 9th, 2002, 05:06 AM
Nauman Nauman is offline
Twenty Seven
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Multan, Pakistan
Posts: 103 Nauman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 33 m 2 sec
Reputation Power: 7
Send a message via ICQ to Nauman
Is this a solution

Hello Kamran...

Nice to c u... Actually I've cut all the code in <filename>.aspx.vb file and paste it in <filename>.aspx within <script language="vb" runat="server"> tags... Now it works fine... no error displayed... but Intelisence didnt work i.e. When we write the objConnection. then window opens with all possible methods, prop etc didnt open... and what if I want to use the both <filename>.aspx.vb and <filename>.aspx... any sol...

I've checked all the referances... Also I've included each and every referance but it didnt work...

I dont know why strange things always happen to me..

_____________
Thanks...
Nauman Ahmed

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > VS.NET is Piece of Cake...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT