CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 7/6/2007 10:38:57 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 8 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
Parley
Asp.Net User
Missing import7/6/2007 10:38:57 PM

0/0

When I run the following code, I get the message "SqlConnection not defined" even thought "system.data.sqlclient" is imported.

import system.data.sqlclient

<script runat="server">

 

Public ReadOnly Property ConnString() As String

Get

Return ConfigurationManager.ConnectionStrings("ClubSiteDB").ConnectionString

End Get

End Property

Protected Sub btnSend_Click(ByVal sender As Object, ByVal e As System.EventArgs)

Using conn As Connection = New SqlConnection(ConnString)

Dim cmd As SqlCommand = New SqlCommand("Select lastname from memberinfo", conn)

conn.Open()

 

End Using

End Sub

</script>

I have to change the code to:

import system.data.sqlclient

<script runat="server">

 

Public ReadOnly Property ConnString() As String

Get

Return ConfigurationManager.ConnectionStrings("ClubSiteDB").ConnectionString

End Get

End Property

Protected Sub btnSend_Click(ByVal sender As Object, ByVal e As System.EventArgs)

Using conn As System.data.SqlClient.SqlConnection = New System.Data.SqlClient.SqlConnection(ConnString)

Dim cmd As System.Data.SqlClient.SqlCommand = New System.Data.SqlClient.SqlCommand("Select lastname from memberinfo", conn)

conn.Open()

 

End Using

End Sub

</script>

I remember from the "good old days of VB5" that you had to tell the IE to include files that you wanted to import.  Is that still true with VS205?  If so how and where?

bmains
Asp.Net User
Re: Missing import7/7/2007 1:41:55 AM

0/0

Hey,

In the ASP page, its:

<%@ Imports Namespace="System.Data.SqlClient" %>


Brian

"Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
International Handbook on the Economics of Corruption Authors: Susan Rose-Ackerman, Pages: 615, Published: 2006
Fixing Access Annoyances: How to Fix the Most Annoying Things about Your Favorite Database Authors: Phil Mitchell, Evan Callahan, Pages: 357, Published: 2005
Learning Perl Objects, References, and Modules Authors: Randal L. Schwartz, Tom Phoenix, Pages: 205, Published: 2003
Learning GNU Emacs: A Guide to the World`s Most Extensible, Customizable Editor Authors: Debra Cameron, James Elliott, Marc Loy, Eric Raymond, Bill Rosenblatt, Pages: 509, Published: 2004
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Eclipse For Dummies Authors: Barry Burd, Pages: 346, Published: 2004
Beginning ASP.NET 2.0 in C# 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1148, Published: 2006
Microsoft Exchange 2003 Deployment and Migration: Deployment and Migration Authors: Kieran McCorry, Pages: 400, Published: 2004

Web:
Nabble - Haskell - Glasgow-haskell-bugs - [GHC] #2636: Error ... [GHC] #2636: Error message for missing import substantially worse in 6.9/6.11. # 2636: Error message for missing import substantially worse in...
Bug #266300 in GNU Mailman: “edithtml.py missing import” edithtml.py missing import [edit] ... to import the re module. ... import re line in the first part of edithtml.py file. Sorry for the inconvenience. ...
#2636 (Error message for missing import substantially worse in 6.9 ... A much nicer error, importantly saying where the import was - in my case the import was in an imported module, so I didn't even know which file was causing ...
#7910 (missing import in compilemessages) - Django - Trac Jul 24, 2008 ... (In [8079]) Fix #7910 -- Added a missing import used when "django-admin.py compilemessages" is run from a bad root directory. ...
[4suite-dev] Module.loadObject missing import sys Sep 30, 2006 ... loadObject missing import sys On Saturday, September 30, 2006 12:57 pm, Crosby Sidney wrote: > There's another problem in the same module: ...
Outlook file menu missing import export : outlook, import, missing In the file menu on one of my outlook 2007 clients it is missing the import/ export selection. Does anyone know how I can get it back so I can import a .pst ...
Delphi and stuff: The missing Import Component Wizard in Turbo ... Dec 22, 2006 ... The missing Import Component Wizard in Turbo Delphi (Win32). Apparently the Import Component and View Type Library wizards are not enabled ...
Rooney - When Did Your Heart Go Missing?(Import) - recommendation ... Dec 20, 2007 ... Rooney - When Did Your Heart Go Missing?(Import). Item images ... Next; Previous . Rooney - When Did Your Heart Go Missing?(Import) ...
Missing import statments in Box.as - glaze Engine | Google Groups There are two missing imports in org.rje.glaze.engine.collision.shapes.Box:. import org.rje.glaze.engine.dynamics.Material; import org.rje.glaze.engine.math ...
#516 (Missing import in workbench) - Enthought Trac - Trac Feb 21, 2006 ... Looks like a missing import or something. ... summary set to Missing import in workbench. sub_project changed from Other to Envisage. ...

Videos:
Ben Watt - Import - Poznan - SQ - 24.11.07 Missing
Color Me Badd - Someone Missing Love (Lost Song) Lost song to smooth! Should have been on there cd bad choice to leave it off and put only on for the import.
Let's Play Vanguard Bandits - Part 31: Someone's Missing... Well, we win the battle, but lose someone else... Sorry for no intro or anything here, stupid Movie Maker didn't want to import this. Interview quo...
THE FLAG HAS DISAPPEARED, by Vernon Oxford A most important Flag went missing after that great tragedy of 9/11, a most infamous DAY OF INFAMY. Where is that Flag today, and what significance d...
ERROR: Missing Achievement! ERROR: Missing Achievement! i dont know what it means or how it happened but i think it would be nice to know what happened
Steak N' Shake Pt. (The missing Chunk) for somereason my video editor wouldn't import this one
Barcelona's unprecedented drought REPORT: As Barcelona experiences its worst drought ever, the Catalan government imports water from Marseille - a short-term solution described as a ...
Full Focus: Immigration Reform 5-15-06 President Bush is due to address the nation Monday evening regarding immigration reform. Later on a special LIVE edition of Full Focus, get analysis ...
Me Drawing LesopazzyM, Otismoe, and Omgitstales !* READ BEFORE WATCHING *! ------------------------------- I have come to the sad and depressing conclusion that hypercam2 despises me. I'll record ...
Retrospective of modern video games A retrospective video of modern video games that have influenced myself and my friend. Video was produced and edited by Brian Castleberry and Erik Ne...




Search This Site:










a definitely weird error!

passwordregularexpression ???

do i need ssl for windows authentication?

events in c#

is that possible make a new module using c# inside dnn ?

web site administration tool deployment

tableprofileprovider on sandbox

new to dnn - how to install it?

intellisense for frameworks like jquery (plus failing behavior)

how to get user name in dnn ?

how to avoid the space between the div .

documentation for membership schema?

admin module

java to c# translation

extending the authorization filter for web parts

treeview

merge aspnetdb database with another database

runtime error

a question about decryption

login page error

how can we watch session variable

running tools from the command window

how to prevent auto password change?

setting property values to a user control

.net 2.0 and 1.1 code

migration assistant doesn't copy/migrate some files

how do i extend the aspnetdb?

looking for some testers for a free e-commerce solution: storenuke.net

database handling architecture for ibuyspy store

treeview not working with ie 6.0.3790.0

 
All Times Are GMT