Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



Reply
sub page load shadows an overloadable member declared in the base class
Old 09-03-2008, 08:24 AM sub page load shadows an overloadable member declared in the base class
Average Talker

Posts: 18
Name: joseph
Trades: 0
Im new to asp have to learn it for my new job.Here is the code. is it to do with the import namespace? thanks for any help

<%@ Import Namespace="System.Data.OleDb" %>
<script runat="server">
Sub Page_Load(ByVal System, ByVal overlaods)
Dim dbconn, sql, dbread, dbcomm
dbconn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; data source=n:\email.mdb;")
dbconn.Open()
sql = "SELECT * FROM details"
dbcomm = New OleDbCommand(sql, dbconn)
dbread = dbcomm.ExecuteReader()
details.DataSource = dbread
details.DataBind()
dbread.Close()
dbconn.Close()
End Sub
</script>
ajm22386 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-03-2008, 01:42 PM Re: sub page load shadows an overloadable member declared in the base class
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Nothing to do with the namespace and everything to do with inheritance.

You should be using a try block in case the connection fails!
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to sub page load shadows an overloadable member declared in the base class
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09439 seconds with 12 queries