Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 10th, 2003, 12:20 PM
Registered User
 
Join Date: Oct 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Overview Help

Hi,

I having a little trouble understanding how everything relates to each other. Here's one example I hope someone can help me out with:

In chpt 5, page 166 is the following code (translated to vb.net):

Imports Wrox.WebModules.Accounts
xxxx

        Public Sub New(ByVal userId As Integer)

            Dim moduleSettings As Configuration.ModuleSettings = _
              Configuration.ModuleConfig.GetSettings()
            Dim dataUser As New Data.User(moduleSettings.ConnectionString)

            myIdentity = New SiteIdentity(userId)
            myPermissionList = dataUser.GetEffectivePermissionList(userId)
            myRoleList = dataUser.GetUserRoles(userId)

        End Sub

My specific question is the following line:
            Dim dataUser As New Data.User(moduleSettings.ConnectionString)

How does the code know where Data.User is?

I assumed it was the 'Imports Wrox.WebModules.Accounts' line but I can comment this out and it still recognizes the Data.User.

So how does the app know? Just trying to get a grip on this. Any explanation or overview is greatly appreciated. Thanks!

- Donald

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Overview - Language and Environments pascal Intro Programming 1 May 19th, 2006 08:06 AM



All times are GMT -4. The time now is 08:58 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.